200
I've noticed that the toolbar is cut when perform scrolling. Is it possible to change that shape

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXTOOLBARLib' for the library: 'ExToolBar 1.0 Control Library'

	#import <ExToolBar.dll>
	using namespace EXTOOLBARLib;
*/
EXTOOLBARLib::IToolBarPtr spToolBar1 = GetDlgItem(IDC_TOOLBAR1)->GetControlUnknown();
spToolBar1->PutArrangeItemsAs(EXTOOLBARLib::ArrangeItemsEnum(EXTOOLBARLib::exArrangeItemsScroll | EXTOOLBARLib::exArrangeItemsHorizontal));
spToolBar1->GetVisualAppearance()->Add(1,_bstr_t("gBFLBCJwBAEHhEJAAEhIDhAxGAyg0HG0Og40HIyiwAGY1GMJiYAf8jAEhhUnAAyhEqg8hk0oAsIjYxHAwmYwHEbGY2GEhGkMlFBlAOhAJhEuoUHjcbGQ1EtMp0hGsbG") +
"owEsvpNBlkpo9ZoNQp8rqMIqdkqwCr1ZrdbrFpsFvs1hg9VuVCjdBA0IoElhFog6zbDykUkhsPms3nMInc9hA0mNpoVrruQpdiutNq9kqlWtuQg+Sluewufp1gqWbEt+" +
"0UK0F81YAuGkut01F3lF7vF6yYA1Ujf4ATjNd8KmeHh84n1MGI1zt9rN7vOhg+9knB4ejAE0m3HHHJlfL1VB5sH6G76m/63Ey2xAG0uMbkIbUDh3me1vjoV7vYIhBQNI" +
"xjoOo5DKGKQj8hAhCbA6ThshAUN0g7or4DCFCQ14AHATIAHkbBZt83xxFCDcMw3DsQRFEINm8SQAHydpuxTEh4GkUzfHATYARnGsPn+d5mk5HkPv4g7/QBAQyhk1UFgB" +
"BMloTBqDwe8iEQkg0KITCzXyDDhZxI30uRJFMXG7FYARTFLfR1MMRSDNUcSC30fE5IYASLAMBhmjZDQQJs9wZB0qQhCaFChC81g3M8RRuAE5IPMENRjDUdN8g8vw7MtJ" +
"x5SseTHODCTpO0jp+hE/SZPqUSgAEpABCS9ytQkLyDTtPU2f8uUxGkg0dDtDxlXLCUPRMRxxRoAHW2wAICA==");
spToolBar1->PutBackground(EXTOOLBARLib::exScrollViewBorder,0x1000000);
EXTOOLBARLib::IItemsPtr var_Items = spToolBar1->GetItems();
	var_Items->PutBackColor(RGB(128,128,128));
	EXTOOLBARLib::IItemPtr var_Item = var_Items->Add(L"Expand",long(2),vtMissing);
		var_Item->PutGroupPopup(EXTOOLBARLib::GroupPopupEnum(EXTOOLBARLib::exGroupPopupVertical | EXTOOLBARLib::exNoGroupPopupFrame | EXTOOLBARLib::exGroupPopup));
		var_Item->PutCheck(VARIANT_TRUE);
		var_Item->PutShowPopupOnChecked(VARIANT_TRUE);
		EXTOOLBARLib::IItemsPtr var_Items1 = var_Item->GetItems();
			var_Items1->PutPadding(L"22,0,0,0");
			var_Items1->Add(L"Radio 1",vtMissing,vtMissing)->PutRadio(VARIANT_TRUE);
			var_Items1->Add(L"Radio 2",vtMissing,vtMissing)->PutRadio(VARIANT_TRUE);
			EXTOOLBARLib::IItemPtr var_Item1 = var_Items1->Add(L"Radio 3",vtMissing,vtMissing);
				var_Item1->PutRadio(VARIANT_TRUE);
				var_Item1->PutChecked(VARIANT_TRUE);
		var_Item->PutChecked(VARIANT_TRUE);
	var_Items->Add(L"",vtMissing,vtMissing)->PutToString(_bstr_t("Expand[typ=1][chk=1][spchk=-1][group=0x0103][itemspad=22,0,0,0](Radio 1[id=20][typ=2],Radio 2[id=30][typ=2],Radio 3[id=40][typ=") +
"2][chk=1])");
spToolBar1->Refresh();

199
I've noticed that the toolbar is cut when perform scrolling. Is it possible to prevent that

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXTOOLBARLib' for the library: 'ExToolBar 1.0 Control Library'

	#import <ExToolBar.dll>
	using namespace EXTOOLBARLib;
*/
EXTOOLBARLib::IToolBarPtr spToolBar1 = GetDlgItem(IDC_TOOLBAR1)->GetControlUnknown();
spToolBar1->PutArrangeItemsAs(EXTOOLBARLib::ArrangeItemsEnum(EXTOOLBARLib::exArrangeItemsScroll | EXTOOLBARLib::exArrangeItemsHorizontal));
spToolBar1->PutBackground(EXTOOLBARLib::exScrollViewBorder,-1);
EXTOOLBARLib::IItemsPtr var_Items = spToolBar1->GetItems();
	var_Items->PutBackColor(RGB(240,240,240));
	EXTOOLBARLib::IItemPtr var_Item = var_Items->Add(L"Expand",long(2),vtMissing);
		var_Item->PutGroupPopup(EXTOOLBARLib::GroupPopupEnum(EXTOOLBARLib::exGroupPopupVertical | EXTOOLBARLib::exNoGroupPopupFrame | EXTOOLBARLib::exGroupPopup));
		var_Item->PutCheck(VARIANT_TRUE);
		var_Item->PutShowPopupOnChecked(VARIANT_TRUE);
		EXTOOLBARLib::IItemsPtr var_Items1 = var_Item->GetItems();
			var_Items1->PutPadding(L"22,0,0,0");
			var_Items1->Add(L"Radio 1",vtMissing,vtMissing)->PutRadio(VARIANT_TRUE);
			var_Items1->Add(L"Radio 2",vtMissing,vtMissing)->PutRadio(VARIANT_TRUE);
			EXTOOLBARLib::IItemPtr var_Item1 = var_Items1->Add(L"Radio 3",vtMissing,vtMissing);
				var_Item1->PutRadio(VARIANT_TRUE);
				var_Item1->PutChecked(VARIANT_TRUE);
		var_Item->PutChecked(VARIANT_TRUE);
	var_Items->Add(L"",vtMissing,vtMissing)->PutToString(_bstr_t("Expand[typ=1][chk=1][spchk=-1][group=0x0103][itemspad=22,0,0,0](Radio 1[id=20][typ=2],Radio 2[id=30][typ=2],Radio 3[id=40][typ=") +
"2][chk=1])");
spToolBar1->Refresh();

198
How can I scroll the items within the toolbar

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXTOOLBARLib' for the library: 'ExToolBar 1.0 Control Library'

	#import <ExToolBar.dll>
	using namespace EXTOOLBARLib;
*/
EXTOOLBARLib::IToolBarPtr spToolBar1 = GetDlgItem(IDC_TOOLBAR1)->GetControlUnknown();
spToolBar1->PutArrangeItemsAs(EXTOOLBARLib::ArrangeItemsEnum(EXTOOLBARLib::exArrangeItemsScroll | EXTOOLBARLib::exArrangeItemsHorizontal));
EXTOOLBARLib::IItemsPtr var_Items = spToolBar1->GetItems();
	var_Items->PutBackColor(RGB(240,240,240));
	EXTOOLBARLib::IItemPtr var_Item = var_Items->Add(L"Expand",long(2),vtMissing);
		var_Item->PutGroupPopup(EXTOOLBARLib::GroupPopupEnum(EXTOOLBARLib::exGroupPopupVertical | EXTOOLBARLib::exNoGroupPopupFrame | EXTOOLBARLib::exGroupPopup));
		var_Item->PutCheck(VARIANT_TRUE);
		var_Item->PutShowPopupOnChecked(VARIANT_TRUE);
		EXTOOLBARLib::IItemsPtr var_Items1 = var_Item->GetItems();
			var_Items1->PutPadding(L"22,0,0,0");
			var_Items1->Add(L"Radio 1",vtMissing,vtMissing)->PutRadio(VARIANT_TRUE);
			var_Items1->Add(L"Radio 2",vtMissing,vtMissing)->PutRadio(VARIANT_TRUE);
			EXTOOLBARLib::IItemPtr var_Item1 = var_Items1->Add(L"Radio 3",vtMissing,vtMissing);
				var_Item1->PutRadio(VARIANT_TRUE);
				var_Item1->PutChecked(VARIANT_TRUE);
		var_Item->PutChecked(VARIANT_TRUE);
	var_Items->Add(L"",vtMissing,vtMissing)->PutToString(_bstr_t("Expand[typ=1][chk=1][spchk=-1][group=0x0103][itemspad=22,0,0,0](Radio 1[id=20][typ=2],Radio 2[id=30][typ=2],Radio 3[id=40][typ=") +
"2][chk=1])");
spToolBar1->Refresh();

197
How can I show an item aligned to the bottom size of the toolbar

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXTOOLBARLib' for the library: 'ExToolBar 1.0 Control Library'

	#import <ExToolBar.dll>
	using namespace EXTOOLBARLib;
*/
EXTOOLBARLib::IToolBarPtr spToolBar1 = GetDlgItem(IDC_TOOLBAR1)->GetControlUnknown();
spToolBar1->PutArrangeItemsAs(EXTOOLBARLib::exArrangeItemsHorizontal);
spToolBar1->GetItems()->PutToString(L"C1[chk],C2[chk]");
EXTOOLBARLib::IItemPtr var_Item = spToolBar1->GetItems()->Add(L"R",vtMissing,vtMissing);
	var_Item->PutCheck(VARIANT_TRUE);
	var_Item->PutChecked(VARIANT_TRUE);
	var_Item->PutY(L"height - iheight");

196
How can I show an item aligned to the right of the toolbar

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXTOOLBARLib' for the library: 'ExToolBar 1.0 Control Library'

	#import <ExToolBar.dll>
	using namespace EXTOOLBARLib;
*/
EXTOOLBARLib::IToolBarPtr spToolBar1 = GetDlgItem(IDC_TOOLBAR1)->GetControlUnknown();
spToolBar1->PutArrangeItemsAs(EXTOOLBARLib::exArrangeItemsHorizontal);
spToolBar1->GetItems()->PutToString(L"C1[chk],C2[chk]");
EXTOOLBARLib::IItemPtr var_Item = spToolBar1->GetItems()->Add(L"R",vtMissing,vtMissing);
	var_Item->PutCheck(VARIANT_TRUE);
	var_Item->PutChecked(VARIANT_TRUE);
	var_Item->PutX(L"width - iwidth");

195
How can I arrange horizontally the items on the toolbar

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXTOOLBARLib' for the library: 'ExToolBar 1.0 Control Library'

	#import <ExToolBar.dll>
	using namespace EXTOOLBARLib;
*/
EXTOOLBARLib::IToolBarPtr spToolBar1 = GetDlgItem(IDC_TOOLBAR1)->GetControlUnknown();
spToolBar1->PutArrangeItemsAs(EXTOOLBARLib::exArrangeItemsHorizontal);
EXTOOLBARLib::IItemsPtr var_Items = spToolBar1->GetItems();
	EXTOOLBARLib::IItemPtr var_Item = var_Items->Add(L"Expand",long(2),vtMissing);
		var_Item->PutGroupPopup(EXTOOLBARLib::GroupPopupEnum(EXTOOLBARLib::exGroupPopupVertical | EXTOOLBARLib::exNoGroupPopupFrame | EXTOOLBARLib::exGroupPopup));
		var_Item->PutCheck(VARIANT_TRUE);
		var_Item->PutShowPopupOnChecked(VARIANT_TRUE);
		EXTOOLBARLib::IItemsPtr var_Items1 = var_Item->GetItems();
			var_Items1->PutPadding(L"22,0,0,0");
			var_Items1->Add(L"Radio 1",vtMissing,vtMissing)->PutRadio(VARIANT_TRUE);
			var_Items1->Add(L"Radio 2",vtMissing,vtMissing)->PutRadio(VARIANT_TRUE);
			EXTOOLBARLib::IItemPtr var_Item1 = var_Items1->Add(L"Radio 3",vtMissing,vtMissing);
				var_Item1->PutRadio(VARIANT_TRUE);
				var_Item1->PutChecked(VARIANT_TRUE);
		var_Item->PutChecked(VARIANT_TRUE);
	var_Items->Add(L"",vtMissing,vtMissing)->PutToString(_bstr_t("Expand[typ=1][chk=1][spchk=-1][group=0x0103][itemspad=22,0,0,0](Radio 1[id=20][typ=2],Radio 2[id=30][typ=2],Radio 3[id=40][typ=") +
"2][chk=1])");
spToolBar1->Refresh();

194
How can I display the drop down panel to a specified location only
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXTOOLBARLib' for the library: 'ExToolBar 1.0 Control Library'

	#import <ExToolBar.dll>
	using namespace EXTOOLBARLib;
*/
EXTOOLBARLib::IToolBarPtr spToolBar1 = GetDlgItem(IDC_TOOLBAR1)->GetControlUnknown();
spToolBar1->PutPopupAppearance(EXTOOLBARLib::ShadowBorder);
EXTOOLBARLib::IItemsPtr var_Items = spToolBar1->GetItems();
	EXTOOLBARLib::IItemPtr var_Item = var_Items->Add(L"Popup",long(2),long(100));
		var_Item->PutShowPopupArrow(VARIANT_FALSE);
		var_Item->PutShowPopupAlign(EXTOOLBARLib::exShowPopupAlignDown);
		var_Item->PutShowPopupOffset(L"0:screen,0:screen");
		EXTOOLBARLib::IItemsPtr var_Items1 = var_Item->GetItems();
			var_Items1->Add(L"Item 1",vtMissing,vtMissing);
			var_Items1->Add(L"Item 2",vtMissing,vtMissing);
			var_Items1->Add(L"Item 3",vtMissing,vtMissing);
spToolBar1->Refresh();

193
How can I displays the drop down bellow the control, rather than item itself

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXTOOLBARLib' for the library: 'ExToolBar 1.0 Control Library'

	#import <ExToolBar.dll>
	using namespace EXTOOLBARLib;
*/
EXTOOLBARLib::IToolBarPtr spToolBar1 = GetDlgItem(IDC_TOOLBAR1)->GetControlUnknown();
spToolBar1->PutPopupAppearance(EXTOOLBARLib::ShadowBorder);
EXTOOLBARLib::IItemsPtr var_Items = spToolBar1->GetItems();
	EXTOOLBARLib::IItemPtr var_Item = var_Items->Add(L"Popup <b>1",long(2),long(100));
		var_Item->PutShowPopupArrow(VARIANT_FALSE);
		var_Item->PutShowPopupAlign(EXTOOLBARLib::exShowPopupAlignDown);
		var_Item->PutShowPopupOffset(L"0,0:control");
		EXTOOLBARLib::IItemsPtr var_Items1 = var_Item->GetItems();
			var_Items1->Add(L"Item 1",vtMissing,vtMissing);
			var_Items1->Add(L"Item 2",vtMissing,vtMissing);
			var_Items1->Add(L"Item 3",vtMissing,vtMissing);
	EXTOOLBARLib::IItemPtr var_Item1 = var_Items->Add(L"Popup <b>2",long(2),long(200));
		var_Item1->PutGroupPopup(EXTOOLBARLib::exGroupPopup);
		EXTOOLBARLib::IItemsPtr var_Items2 = var_Item1->GetItems();
			var_Items2->Add(L"Item 2",vtMissing,vtMissing);
			var_Items2->Add(L"Item 3",vtMissing,vtMissing);
			var_Items2->Add(L"Item 4",vtMissing,vtMissing);
spToolBar1->Refresh();

192
How can I change the visual appearance of the progress bar

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXTOOLBARLib' for the library: 'ExToolBar 1.0 Control Library'

	#import <ExToolBar.dll>
	using namespace EXTOOLBARLib;
*/
EXTOOLBARLib::IToolBarPtr spToolBar1 = GetDlgItem(IDC_TOOLBAR1)->GetControlUnknown();
spToolBar1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn");
spToolBar1->PutBackground(EXTOOLBARLib::BackgroundPartEnum(0x104),0x1000000);
EXTOOLBARLib::IItemsPtr var_Items = spToolBar1->GetItems();
	EXTOOLBARLib::IItemPtr var_Item = var_Items->Add(L"Progress",vtMissing,vtMissing);
		var_Item->PutAllowEdit(EXTOOLBARLib::exItemEditProgress);
		var_Item->PutEditWidth(-128);
		var_Item->PutEditValue(long(25));
spToolBar1->Refresh();

191
How can I change the progress's color

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXTOOLBARLib' for the library: 'ExToolBar 1.0 Control Library'

	#import <ExToolBar.dll>
	using namespace EXTOOLBARLib;
*/
EXTOOLBARLib::IToolBarPtr spToolBar1 = GetDlgItem(IDC_TOOLBAR1)->GetControlUnknown();
spToolBar1->PutBackground(EXTOOLBARLib::BackgroundPartEnum(0x104),RGB(255,0,0));
EXTOOLBARLib::IItemsPtr var_Items = spToolBar1->GetItems();
	EXTOOLBARLib::IItemPtr var_Item = var_Items->Add(L"Progress",vtMissing,vtMissing);
		var_Item->PutAllowEdit(EXTOOLBARLib::exItemEditProgress);
		var_Item->PutEditWidth(-128);
		var_Item->PutEditValue(long(25));
spToolBar1->Refresh();

190
I am using the Item.Visible property on False to hide the item, but the editor is still visible
// CheckItem event - Occurs when the user checks the item.
void OnCheckItemToolBar1(LPDISPATCH   Itm)
{
	/*
		Copy and paste the following directives to your header file as
		it defines the namespace 'EXTOOLBARLib' for the library: 'ExToolBar 1.0 Control Library'
		#import <ExToolBar.dll>
		using namespace EXTOOLBARLib;
	*/
	EXTOOLBARLib::IToolBarPtr spToolBar1 = GetDlgItem(IDC_TOOLBAR1)->GetControlUnknown();
	EXTOOLBARLib::IItemPtr var_Item = spToolBar1->GetItems()->GetItem(long(1000));
		var_Item->PutVisible(VARIANT_TRUE);
		var_Item->PutAllowEdit(EXTOOLBARLib::AllowEditEnum(EXTOOLBARLib::exItemEditReadOnly | EXTOOLBARLib::exItemEditProgress));
	spToolBar1->Refresh();
}

// UncheckItem event - Occurs when the user unchecks the item.
void OnUncheckItemToolBar1(LPDISPATCH   Itm)
{
	EXTOOLBARLib::IToolBarPtr spToolBar1 = GetDlgItem(IDC_TOOLBAR1)->GetControlUnknown();
	EXTOOLBARLib::IItemPtr var_Item = spToolBar1->GetItems()->GetItem(long(1000));
		var_Item->PutVisible(VARIANT_FALSE);
		var_Item->PutAllowEdit(EXTOOLBARLib::exItemDisableEdit);
	spToolBar1->Refresh();
}

EXTOOLBARLib::IToolBarPtr spToolBar1 = GetDlgItem(IDC_TOOLBAR1)->GetControlUnknown();
EXTOOLBARLib::IItemsPtr var_Items = spToolBar1->GetItems();
	EXTOOLBARLib::IItemPtr var_Item = var_Items->Add(L"",long(2),vtMissing);
		EXTOOLBARLib::IItemsPtr var_Items1 = var_Item->GetItems();
			var_Items1->Add(L"Visible",vtMissing,vtMissing);
			EXTOOLBARLib::IItemPtr var_Item1 = var_Items1->Add(L"",vtMissing,vtMissing);
				var_Item1->PutCheck(VARIANT_TRUE);
				var_Item1->PutChecked(VARIANT_TRUE);
			EXTOOLBARLib::IItemPtr var_Item2 = var_Items1->Add(L"Item 2",vtMissing,long(1000));
				var_Item2->PutItemHeight(18);
				var_Item2->PutCaption(L"Percent");
				var_Item2->PutAllowEdit(EXTOOLBARLib::AllowEditEnum(EXTOOLBARLib::exItemEditReadOnly | EXTOOLBARLib::exItemEditProgress));
				var_Item2->PutEditValue(long(50));
				var_Item2->PutVisible(VARIANT_TRUE);
			var_Items1->Add(L"Visible",vtMissing,vtMissing);
		var_Item->PutGroupPopup(EXTOOLBARLib::GroupPopupEnum(EXTOOLBARLib::exNoGroupPopupFrame | EXTOOLBARLib::exGroupPopup));
spToolBar1->Refresh();

189
How can I change the color of a disabled item

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXTOOLBARLib' for the library: 'ExToolBar 1.0 Control Library'

	#import <ExToolBar.dll>
	using namespace EXTOOLBARLib;
*/
EXTOOLBARLib::IToolBarPtr spToolBar1 = GetDlgItem(IDC_TOOLBAR1)->GetControlUnknown();
EXTOOLBARLib::IItemsPtr var_Items = spToolBar1->GetItems();
	EXTOOLBARLib::IItemPtr var_Item = var_Items->Add(L"Disabled",long(2),long(0));
		var_Item->PutForeColor(RGB(255,0,0));
		var_Item->GetItems()->Add(L"",vtMissing,vtMissing);
		var_Item->PutGroupPopup(EXTOOLBARLib::GroupPopupEnum(EXTOOLBARLib::exNoGroupPopupFrame | EXTOOLBARLib::exGroupPopup));
		var_Item->PutShowPopupArrow(VARIANT_FALSE);
	var_Items->Add(L"Disabled",vtMissing,vtMissing)->PutEnabled(VARIANT_FALSE);
spToolBar1->Refresh();

188
Microsoft Windows 8.1 - Ribbon Like

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXTOOLBARLib' for the library: 'ExToolBar 1.0 Control Library'

	#import <ExToolBar.dll>
	using namespace EXTOOLBARLib;
*/
EXTOOLBARLib::IToolBarPtr spToolBar1 = GetDlgItem(IDC_TOOLBAR1)->GetControlUnknown();
EXTOOLBARLib::IItemsPtr var_Items = spToolBar1->GetItems();
	var_Items->PutToString(L"[id=0][group=0x03](),[id=-99][bg=0x01000000][group=0x03][itemspad=4,4,4,4]([id=9000])");
	EXTOOLBARLib::IItemsPtr var_Items1 = var_Items->GetItem(long(0))->GetItems();
		var_Items1->Add(L"",long(0),long(0))->PutPadding(L"8,0,0,0");
		EXTOOLBARLib::IItemPtr var_Item3 = var_Items1->Add(L"New Page",vtMissing,vtMissing);
			var_Item3->PutToString(_bstr_t("[id=0][typ=2][chk=1][spchk=-1][show=1][grp=10][bghot=0x12000000][bgsel=0x11000000][bgselhot=0x14000000][group=0x03][tab=9000][p") +
"ad=4,0,4,0][popupoffset=-4,-1]([id=0][group=0x03]([id=0][group=0x03]))");
			var_Item3->PutID(200);
			var_Item3->PutCaption(L"Page1");
			var_Item3->PutShowPopupAlign(EXTOOLBARLib::exShowPopupAlignDown);
			EXTOOLBARLib::IItemPtr var_Item = var_Item3->GetItems()->GetItem(long(0));
				var_Item = var_Item->GetItems()->Add(L"New Group",vtMissing,vtMissing);
					var_Item->PutToString(L"[id=0][group=0x03][itemspad=4,4,4,18][itemsbg=0x02000000][itemsbghot=0x04000000]()");
					var_Item->PutCaption(L"<b><font ;14>A");
					EXTOOLBARLib::IItemsPtr var_Items2 = var_Item->GetItems();
						var_Items2->PutBackgroundExt(L"bottom[16,text=`<fgcolor A0A0A0><font ;8>Horizontal`,align=0x11]");
						EXTOOLBARLib::IItemPtr var_Item1 = var_Items2->Add(L"",long(2),vtMissing);
							var_Item1->PutGroupPopup(EXTOOLBARLib::GroupPopupEnum(EXTOOLBARLib::exGroupPopupEqualWidth | EXTOOLBARLib::exGroupPopup));
							var_Item1->PutCaption(L"");
							EXTOOLBARLib::IItemsPtr var_Items3 = var_Item1->GetItems();
								EXTOOLBARLib::IItemPtr var_Item2 = var_Items3->Add(L"R1",vtMissing,vtMissing);
									var_Item2->PutRadioGroup(100);
									var_Item2->PutRadio(VARIANT_TRUE);
									var_Item2->PutShowCheckedAsSelected(EXTOOLBARLib::exDisplayItemHighlight);
									var_Item2->PutChecked(VARIANT_FALSE);
								EXTOOLBARLib::IItemPtr var_Item4 = var_Items3->Add(L"R2",vtMissing,vtMissing);
									var_Item4->PutRadioGroup(100);
									var_Item4->PutRadio(VARIANT_TRUE);
									var_Item4->PutShowCheckedAsSelected(EXTOOLBARLib::exDisplayItemHighlight);
									var_Item4->PutChecked(VARIANT_TRUE);
								EXTOOLBARLib::IItemPtr var_Item5 = var_Items3->Add(L"R3",vtMissing,vtMissing);
									var_Item5->PutRadioGroup(100);
									var_Item5->PutRadio(VARIANT_TRUE);
									var_Item5->PutShowCheckedAsSelected(EXTOOLBARLib::exDisplayItemHighlight);
									var_Item5->PutChecked(VARIANT_FALSE);
				var_Item1 = var_Item->GetItems()->Add(L"New Group",vtMissing,vtMissing);
					var_Item1->PutToString(L"[id=0][group=0x03][itemspad=4,4,4,18][itemsbg=0x02000000][itemsbghot=0x04000000]()");
					var_Item1->PutCaption(L"<b><font ;14>B");
					EXTOOLBARLib::IItemsPtr var_Items4 = var_Item1->GetItems();
						var_Items4->PutBackgroundExt(L"bottom[16,text=`<fgcolor A0A0A0><font ;8>Vertical`,align=0x11]");
						EXTOOLBARLib::IItemPtr var_Item6 = var_Items4->Add(L"",long(2),vtMissing);
							var_Item6->PutGroupPopup(EXTOOLBARLib::GroupPopupEnum(EXTOOLBARLib::exGroupPopupVertical | EXTOOLBARLib::exGroupPopupEqualHeight | EXTOOLBARLib::exGroupPopup));
							var_Item6->PutCaption(L"");
							EXTOOLBARLib::IItemsPtr var_Items5 = var_Item6->GetItems();
								EXTOOLBARLib::IItemPtr var_Item7 = var_Items5->Add(L"C1",vtMissing,vtMissing);
									var_Item7->PutCheck(VARIANT_TRUE);
									var_Item7->PutChecked(VARIANT_TRUE);
								EXTOOLBARLib::IItemPtr var_Item8 = var_Items5->Add(L"C2",vtMissing,vtMissing);
									var_Item8->PutCheck(VARIANT_TRUE);
									var_Item8->PutChecked(VARIANT_FALSE);
								EXTOOLBARLib::IItemPtr var_Item9 = var_Items5->Add(L"C3",vtMissing,vtMissing);
									var_Item9->PutCheck(VARIANT_TRUE);
									var_Item9->PutChecked(VARIANT_TRUE);
				var_Item->GetItems()->Add(L"",long(0),long(0))->PutPadding(L"4,0,0,0");
				var_Item2 = var_Item->GetItems()->Add(L"New Group",vtMissing,vtMissing);
					var_Item2->PutToString(L"[id=0][group=0x03][itemspad=4,4,4,18][itemsbg=0x02000000][itemsbghot=0x04000000]()");
					var_Item2->PutCaption(L"");
					EXTOOLBARLib::IItemsPtr var_Items6 = var_Item2->GetItems();
						var_Items6->PutBackgroundExt(L"bottom[16,text=`<fgcolor A0A0A0><font ;8>Mixt`,align=0x11]");
						EXTOOLBARLib::IItemPtr var_Item10 = var_Items6->Add(L"",long(0),vtMissing);
							var_Item10->PutAllowEdit(EXTOOLBARLib::AllowEditEnum(EXTOOLBARLib::exItemEditVertical | EXTOOLBARLib::exItemEditSlider));
							var_Item10->PutItemHeight(76);
							var_Item10->PutEditBorder(EXTOOLBARLib::exEditBorderNone);
							var_Item10->PutEditValue(long(25));
						EXTOOLBARLib::IItemPtr var_Item11 = var_Items6->Add(L"",long(2),vtMissing);
							var_Item11->PutGroupPopup(EXTOOLBARLib::GroupPopupEnum(EXTOOLBARLib::exGroupPopupVertical | EXTOOLBARLib::exNoGroupPopupFrame | EXTOOLBARLib::exGroupPopup));
							var_Item11->PutCaption(L"");
							EXTOOLBARLib::IItemsPtr var_Items7 = var_Item11->GetItems();
								EXTOOLBARLib::IItemPtr var_Item12 = var_Items7->Add(L"",long(2),vtMissing);
									var_Item12->PutGroupPopup(EXTOOLBARLib::GroupPopupEnum(EXTOOLBARLib::exNoGroupPopupFrame | EXTOOLBARLib::exGroupPopup));
									EXTOOLBARLib::IItemsPtr var_Items8 = var_Item12->GetItems();
										EXTOOLBARLib::IItemPtr var_Item13 = var_Items8->Add(L"Button1",long(2),vtMissing);
											var_Item13->PutShowAsButton(EXTOOLBARLib::ShowAsButtonEnum(EXTOOLBARLib::exShowAsSelectButtonBottom | EXTOOLBARLib::exShowAsButtonAutoSize));
											EXTOOLBARLib::IItemsPtr var_Items9 = var_Item13->GetItems();
												var_Items9->Add(L"Item 1",vtMissing,vtMissing);
												var_Items9->Add(L"Item 2",vtMissing,vtMissing);
												var_Items9->Add(L"Item 3",vtMissing,vtMissing);
										var_Items8->Add(L"",long(0),long(0))->PutPadding(L"4,0,0,0");
										EXTOOLBARLib::IItemPtr var_Item14 = var_Items8->Add(L"Button2",long(2),vtMissing);
											var_Item14->PutShowAsButton(EXTOOLBARLib::ShowAsButtonEnum(EXTOOLBARLib::exShowAsSelectButtonBottom | EXTOOLBARLib::exShowAsButtonAutoSize));
											EXTOOLBARLib::IItemsPtr var_Items10 = var_Item14->GetItems();
												var_Items10->Add(L"Item 4",vtMissing,vtMissing);
												var_Items10->Add(L"Item 5",vtMissing,vtMissing);
												var_Items10->Add(L"Item 6",vtMissing,vtMissing);
								EXTOOLBARLib::IItemPtr var_Item15 = var_Items7->Add(L"Popup",long(2),vtMissing);
									var_Item15->PutAlignment(EXTOOLBARLib::exCenter);
									EXTOOLBARLib::IItemsPtr var_Items11 = var_Item15->GetItems();
										var_Items11->Add(L"Item 7",vtMissing,vtMissing)->PutCheck(VARIANT_TRUE);
										var_Items11->Add(L"Item 8",vtMissing,vtMissing);
										EXTOOLBARLib::IItemsPtr var_Items12 = var_Items11->Add(L"Item 9",long(2),vtMissing)->GetItems();
											var_Items12->Add(L"Item 10",vtMissing,vtMissing);
											var_Items12->Add(L"Item 11",vtMissing,vtMissing);
											var_Items12->Add(L"Item 12",vtMissing,vtMissing);
		var_Item4 = var_Items1->Add(L"New Page",vtMissing,vtMissing);
			var_Item4->PutToString(_bstr_t("[id=0][typ=2][chk=0][spchk=-1][show=1][grp=10][bghot=0x12000000][bgsel=0x11000000][bgselhot=0x14000000][group=0x03][tab=9000][p") +
"ad=4,0,4,0][popupoffset=-4,-1]([id=0][group=0x03]([id=0][group=0x03]))");
			var_Item4->PutID(300);
			var_Item4->PutCaption(L"Page2");
			var_Item4->PutShowPopupAlign(EXTOOLBARLib::exShowPopupAlignDown);
			EXTOOLBARLib::IItemPtr var_Item16 = var_Item4->GetItems()->GetItem(long(0));
				EXTOOLBARLib::IItemsPtr var_Items13 = var_Item16->GetItems();
					EXTOOLBARLib::IItemPtr var_Item17 = var_Items13->Add(L"S1",vtMissing,vtMissing);
						var_Item17->PutItemHeight(88);
						var_Item17->PutAllowEdit(EXTOOLBARLib::AllowEditEnum(EXTOOLBARLib::exItemEditVertical | EXTOOLBARLib::exItemEditSpin | EXTOOLBARLib::exItemEditProgress));
						var_Item17->PutEditValue(long(25));
					EXTOOLBARLib::IItemPtr var_Item18 = var_Items13->Add(L"S2",vtMissing,vtMissing);
						var_Item18->PutItemHeight(88);
						var_Item18->PutAllowEdit(EXTOOLBARLib::AllowEditEnum(EXTOOLBARLib::exItemEditVertical | EXTOOLBARLib::exItemEditSpin | EXTOOLBARLib::exItemEditProgress));
						var_Item18->PutEditValue(long(50));
					EXTOOLBARLib::IItemPtr var_Item19 = var_Items13->Add(L"S3",vtMissing,vtMissing);
						var_Item19->PutItemHeight(88);
						var_Item19->PutAllowEdit(EXTOOLBARLib::AllowEditEnum(EXTOOLBARLib::exItemEditVertical | EXTOOLBARLib::exItemEditSpin | EXTOOLBARLib::exItemEditProgress));
						var_Item19->PutEditValue(long(75));
		var_Items1->Add(L"",long(0),long(0))->PutPadding(L"8,0,0,0");
spToolBar1->PutPopupFlatAppearance(VARIANT_FALSE);
EXTOOLBARLib::IAppearancePtr var_Appearance = spToolBar1->GetVisualAppearance();
	var_Appearance->Add(1,"C:/Program Files/Exontrol/ExToolBar/Sample/EBN/MSFlat-Ribbon/msfr_background.ebn");
	var_Appearance->Add(2,"C:/Program Files/Exontrol/ExToolBar/Sample/EBN/MSFlat-Ribbon/msfr_groupt.ebn");
	var_Appearance->Add(12,"C:/Program Files/Exontrol/ExToolBar/Sample/EBN/MSFlat-Ribbon/msfr_hot.ebn");
	var_Appearance->Add(14,"C:/Program Files/Exontrol/ExToolBar/Sample/EBN/MSFlat-Ribbon/msfr_select.ebn");
	var_Appearance->Add(17,"C:/Program Files/Exontrol/ExToolBar/Sample/EBN/MSFlat-Ribbon/msfr_tab.ebn");
	var_Appearance->Add(18,"C:/Program Files/Exontrol/ExToolBar/Sample/EBN/MSFlat-Ribbon/msfr_tabhot.ebn");
	var_Appearance->Add(32,"C:/Program Files/Exontrol/ExToolBar/Sample/EBN/MSFlat-Ribbon/msfr_check0.ebn");
	var_Appearance->Add(33,"C:/Program Files/Exontrol/ExToolBar/Sample/EBN/MSFlat-Ribbon/msfr_check1.ebn");
	var_Appearance->Add(34,"C:/Program Files/Exontrol/ExToolBar/Sample/EBN/MSFlat-Ribbon/msfr_buttonu.ebn");
	var_Appearance->Add(35,"C:/Program Files/Exontrol/ExToolBar/Sample/EBN/MSFlat-Ribbon/msfr_buttond.ebn");
spToolBar1->PutAppearance(EXTOOLBARLib::ToolBarAppearanceEnum(0x1000000));
spToolBar1->PutBackground(EXTOOLBARLib::exToolTipAppearance,spToolBar1->GetAppearance());
spToolBar1->PutSelBackColor(0xe000000);
spToolBar1->PutBackground(EXTOOLBARLib::exMenuHotBackColor,0xc000000);
spToolBar1->PutBackground(EXTOOLBARLib::exMenuSelHotBackColor,0x23000000);
spToolBar1->PutBackground(EXTOOLBARLib::BackgroundPartEnum(0x2),0x22000000);
spToolBar1->PutBackground(EXTOOLBARLib::BackgroundPartEnum(0x3),0x23000000);
spToolBar1->PutBackground(EXTOOLBARLib::exCheckBoxState0,0x20000000);
spToolBar1->PutBackground(EXTOOLBARLib::exCheckBoxState1,0x21000000);
spToolBar1->Refresh();

187
Microsoft Paint - Ribbon Like

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXTOOLBARLib' for the library: 'ExToolBar 1.0 Control Library'

	#import <ExToolBar.dll>
	using namespace EXTOOLBARLib;
*/
EXTOOLBARLib::IToolBarPtr spToolBar1 = GetDlgItem(IDC_TOOLBAR1)->GetControlUnknown();
EXTOOLBARLib::IItemsPtr var_Items = spToolBar1->GetItems();
	var_Items->PutToString(L"[id=0][group=0x03](),[id=-99][bg=0x01000000][group=0x03][itemspad=4,4,4,4]([id=9000])");
	EXTOOLBARLib::IItemsPtr var_Items1 = var_Items->GetItem(long(0))->GetItems();
		var_Items1->Add(L"",long(0),long(0))->PutPadding(L"8,0,0,0");
		EXTOOLBARLib::IItemPtr var_Item3 = var_Items1->Add(L"New Page",vtMissing,vtMissing);
			var_Item3->PutToString(_bstr_t("[id=0][typ=2][chk=1][spchk=-1][show=1][grp=10][bghot=0x12000000][bgsel=0x11000000][bgselhot=0x14000000][group=0x03][tab=9000][p") +
"ad=4,0,4,0][popupoffset=-4,-1]([id=0][group=0x03]([id=0][group=0x03]))");
			var_Item3->PutID(200);
			var_Item3->PutCaption(L"Page1");
			var_Item3->PutShowPopupAlign(EXTOOLBARLib::exShowPopupAlignDown);
			EXTOOLBARLib::IItemPtr var_Item = var_Item3->GetItems()->GetItem(long(0));
				var_Item = var_Item->GetItems()->Add(L"New Group",vtMissing,vtMissing);
					var_Item->PutToString(L"[id=0][group=0x03][itemspad=4,4,4,18][itemsbg=0x02000000][itemsbghot=0x04000000]()");
					var_Item->PutCaption(L"<b><font ;14>A");
					EXTOOLBARLib::IItemsPtr var_Items2 = var_Item->GetItems();
						var_Items2->PutBackgroundExt(L"bottom[16,text=`<fgcolor A0A0A0><font ;8>Horizontal`,align=0x11]");
						EXTOOLBARLib::IItemPtr var_Item1 = var_Items2->Add(L"",long(2),vtMissing);
							var_Item1->PutGroupPopup(EXTOOLBARLib::GroupPopupEnum(EXTOOLBARLib::exGroupPopupEqualWidth | EXTOOLBARLib::exGroupPopup));
							var_Item1->PutCaption(L"");
							EXTOOLBARLib::IItemsPtr var_Items3 = var_Item1->GetItems();
								EXTOOLBARLib::IItemPtr var_Item2 = var_Items3->Add(L"R1",vtMissing,vtMissing);
									var_Item2->PutRadioGroup(100);
									var_Item2->PutRadio(VARIANT_TRUE);
									var_Item2->PutShowCheckedAsSelected(EXTOOLBARLib::exDisplayItemHighlight);
									var_Item2->PutChecked(VARIANT_FALSE);
								EXTOOLBARLib::IItemPtr var_Item4 = var_Items3->Add(L"R2",vtMissing,vtMissing);
									var_Item4->PutRadioGroup(100);
									var_Item4->PutRadio(VARIANT_TRUE);
									var_Item4->PutShowCheckedAsSelected(EXTOOLBARLib::exDisplayItemHighlight);
									var_Item4->PutChecked(VARIANT_TRUE);
								EXTOOLBARLib::IItemPtr var_Item5 = var_Items3->Add(L"R3",vtMissing,vtMissing);
									var_Item5->PutRadioGroup(100);
									var_Item5->PutRadio(VARIANT_TRUE);
									var_Item5->PutShowCheckedAsSelected(EXTOOLBARLib::exDisplayItemHighlight);
									var_Item5->PutChecked(VARIANT_FALSE);
				var_Item1 = var_Item->GetItems()->Add(L"New Group",vtMissing,vtMissing);
					var_Item1->PutToString(L"[id=0][group=0x03][itemspad=4,4,4,18][itemsbg=0x02000000][itemsbghot=0x04000000]()");
					var_Item1->PutCaption(L"<b><font ;14>B");
					EXTOOLBARLib::IItemsPtr var_Items4 = var_Item1->GetItems();
						var_Items4->PutBackgroundExt(L"bottom[16,text=`<fgcolor A0A0A0><font ;8>Vertical`,align=0x11]");
						EXTOOLBARLib::IItemPtr var_Item6 = var_Items4->Add(L"",long(2),vtMissing);
							var_Item6->PutGroupPopup(EXTOOLBARLib::GroupPopupEnum(EXTOOLBARLib::exGroupPopupVertical | EXTOOLBARLib::exGroupPopupEqualHeight | EXTOOLBARLib::exGroupPopup));
							var_Item6->PutCaption(L"");
							EXTOOLBARLib::IItemsPtr var_Items5 = var_Item6->GetItems();
								EXTOOLBARLib::IItemPtr var_Item7 = var_Items5->Add(L"C1",vtMissing,vtMissing);
									var_Item7->PutCheck(VARIANT_TRUE);
									var_Item7->PutChecked(VARIANT_TRUE);
								EXTOOLBARLib::IItemPtr var_Item8 = var_Items5->Add(L"C2",vtMissing,vtMissing);
									var_Item8->PutCheck(VARIANT_TRUE);
									var_Item8->PutChecked(VARIANT_FALSE);
								EXTOOLBARLib::IItemPtr var_Item9 = var_Items5->Add(L"C3",vtMissing,vtMissing);
									var_Item9->PutCheck(VARIANT_TRUE);
									var_Item9->PutChecked(VARIANT_TRUE);
				var_Item->GetItems()->Add(L"",long(0),long(0))->PutPadding(L"4,0,0,0");
				var_Item2 = var_Item->GetItems()->Add(L"New Group",vtMissing,vtMissing);
					var_Item2->PutToString(L"[id=0][group=0x03][itemspad=4,4,4,18][itemsbg=0x02000000][itemsbghot=0x04000000]()");
					var_Item2->PutCaption(L"");
					EXTOOLBARLib::IItemsPtr var_Items6 = var_Item2->GetItems();
						var_Items6->PutBackgroundExt(L"bottom[16,text=`<fgcolor A0A0A0><font ;8>Mixt`,align=0x11]");
						EXTOOLBARLib::IItemPtr var_Item10 = var_Items6->Add(L"",long(0),vtMissing);
							var_Item10->PutAllowEdit(EXTOOLBARLib::AllowEditEnum(EXTOOLBARLib::exItemEditVertical | EXTOOLBARLib::exItemEditSlider));
							var_Item10->PutItemHeight(76);
							var_Item10->PutEditBorder(EXTOOLBARLib::exEditBorderNone);
							var_Item10->PutEditValue(long(25));
						EXTOOLBARLib::IItemPtr var_Item11 = var_Items6->Add(L"",long(2),vtMissing);
							var_Item11->PutGroupPopup(EXTOOLBARLib::GroupPopupEnum(EXTOOLBARLib::exGroupPopupVertical | EXTOOLBARLib::exNoGroupPopupFrame | EXTOOLBARLib::exGroupPopup));
							var_Item11->PutCaption(L"");
							EXTOOLBARLib::IItemsPtr var_Items7 = var_Item11->GetItems();
								EXTOOLBARLib::IItemPtr var_Item12 = var_Items7->Add(L"",long(2),vtMissing);
									var_Item12->PutGroupPopup(EXTOOLBARLib::GroupPopupEnum(EXTOOLBARLib::exNoGroupPopupFrame | EXTOOLBARLib::exGroupPopup));
									EXTOOLBARLib::IItemsPtr var_Items8 = var_Item12->GetItems();
										EXTOOLBARLib::IItemPtr var_Item13 = var_Items8->Add(L"Button1",long(2),vtMissing);
											var_Item13->PutShowAsButton(EXTOOLBARLib::ShowAsButtonEnum(EXTOOLBARLib::exShowAsSelectButtonBottom | EXTOOLBARLib::exShowAsButtonAutoSize));
											EXTOOLBARLib::IItemsPtr var_Items9 = var_Item13->GetItems();
												var_Items9->Add(L"Item 1",vtMissing,vtMissing);
												var_Items9->Add(L"Item 2",vtMissing,vtMissing);
												var_Items9->Add(L"Item 3",vtMissing,vtMissing);
										var_Items8->Add(L"",long(0),long(0))->PutPadding(L"4,0,0,0");
										EXTOOLBARLib::IItemPtr var_Item14 = var_Items8->Add(L"Button2",long(2),vtMissing);
											var_Item14->PutShowAsButton(EXTOOLBARLib::ShowAsButtonEnum(EXTOOLBARLib::exShowAsSelectButtonBottom | EXTOOLBARLib::exShowAsButtonAutoSize));
											EXTOOLBARLib::IItemsPtr var_Items10 = var_Item14->GetItems();
												var_Items10->Add(L"Item 4",vtMissing,vtMissing);
												var_Items10->Add(L"Item 5",vtMissing,vtMissing);
												var_Items10->Add(L"Item 6",vtMissing,vtMissing);
								EXTOOLBARLib::IItemPtr var_Item15 = var_Items7->Add(L"Popup",long(2),vtMissing);
									var_Item15->PutAlignment(EXTOOLBARLib::exCenter);
									EXTOOLBARLib::IItemsPtr var_Items11 = var_Item15->GetItems();
										var_Items11->Add(L"Item 7",vtMissing,vtMissing)->PutCheck(VARIANT_TRUE);
										var_Items11->Add(L"Item 8",vtMissing,vtMissing);
										EXTOOLBARLib::IItemsPtr var_Items12 = var_Items11->Add(L"Item 9",long(2),vtMissing)->GetItems();
											var_Items12->Add(L"Item 10",vtMissing,vtMissing);
											var_Items12->Add(L"Item 11",vtMissing,vtMissing);
											var_Items12->Add(L"Item 12",vtMissing,vtMissing);
		var_Item4 = var_Items1->Add(L"New Page",vtMissing,vtMissing);
			var_Item4->PutToString(_bstr_t("[id=0][typ=2][chk=0][spchk=-1][show=1][grp=10][bghot=0x12000000][bgsel=0x11000000][bgselhot=0x14000000][group=0x03][tab=9000][p") +
"ad=4,0,4,0][popupoffset=-4,-1]([id=0][group=0x03]([id=0][group=0x03]))");
			var_Item4->PutID(300);
			var_Item4->PutCaption(L"Page2");
			var_Item4->PutShowPopupAlign(EXTOOLBARLib::exShowPopupAlignDown);
			EXTOOLBARLib::IItemPtr var_Item16 = var_Item4->GetItems()->GetItem(long(0));
				EXTOOLBARLib::IItemsPtr var_Items13 = var_Item16->GetItems();
					EXTOOLBARLib::IItemPtr var_Item17 = var_Items13->Add(L"S1",vtMissing,vtMissing);
						var_Item17->PutItemHeight(88);
						var_Item17->PutAllowEdit(EXTOOLBARLib::AllowEditEnum(EXTOOLBARLib::exItemEditVertical | EXTOOLBARLib::exItemEditSpin | EXTOOLBARLib::exItemEditProgress));
						var_Item17->PutEditValue(long(25));
					EXTOOLBARLib::IItemPtr var_Item18 = var_Items13->Add(L"S2",vtMissing,vtMissing);
						var_Item18->PutItemHeight(88);
						var_Item18->PutAllowEdit(EXTOOLBARLib::AllowEditEnum(EXTOOLBARLib::exItemEditVertical | EXTOOLBARLib::exItemEditSpin | EXTOOLBARLib::exItemEditProgress));
						var_Item18->PutEditValue(long(50));
					EXTOOLBARLib::IItemPtr var_Item19 = var_Items13->Add(L"S3",vtMissing,vtMissing);
						var_Item19->PutItemHeight(88);
						var_Item19->PutAllowEdit(EXTOOLBARLib::AllowEditEnum(EXTOOLBARLib::exItemEditVertical | EXTOOLBARLib::exItemEditSpin | EXTOOLBARLib::exItemEditProgress));
						var_Item19->PutEditValue(long(75));
		var_Items1->Add(L"",long(0),long(0))->PutPadding(L"8,0,0,0");
spToolBar1->PutPopupFlatAppearance(VARIANT_FALSE);
EXTOOLBARLib::IAppearancePtr var_Appearance = spToolBar1->GetVisualAppearance();
	var_Appearance->Add(1,"C:/Program Files/Exontrol/ExToolBar/Sample/EBN/MSPaint-Ribbon/mspr_background.ebn");
	var_Appearance->Add(2,"C:/Program Files/Exontrol/ExToolBar/Sample/EBN/MSPaint-Ribbon/mspr_groupt.ebn");
	var_Appearance->Add(3,"C:/Program Files/Exontrol/ExToolBar/Sample/EBN/MSPaint-Ribbon/mspr_groupo.ebn");
	var_Appearance->Add(4,"C:/Program Files/Exontrol/ExToolBar/Sample/EBN/MSPaint-Ribbon/mspr_grouphot.ebn");
	var_Appearance->Add(5,"C:/Program Files/Exontrol/ExToolBar/Sample/EBN/MSPaint-Ribbon/mspr_frameh.ebn");
	var_Appearance->Add(6,"C:/Program Files/Exontrol/ExToolBar/Sample/EBN/MSPaint-Ribbon/mspr_framehs.ebn");
	var_Appearance->Add(7,"C:/Program Files/Exontrol/ExToolBar/Sample/EBN/MSPaint-Ribbon/mspr_framehi.ebn");
	var_Appearance->Add(8,"C:/Program Files/Exontrol/ExToolBar/Sample/EBN/MSPaint-Ribbon/mspr_framehe.ebn");
	var_Appearance->Add(9,"C:/Program Files/Exontrol/ExToolBar/Sample/EBN/MSPaint-Ribbon/mspr_framevs.ebn");
	var_Appearance->Add(10,"C:/Program Files/Exontrol/ExToolBar/Sample/EBN/MSPaint-Ribbon/mspr_framevi.ebn");
	var_Appearance->Add(11,"C:/Program Files/Exontrol/ExToolBar/Sample/EBN/MSPaint-Ribbon/mspr_frameve.ebn");
	var_Appearance->Add(12,"C:/Program Files/Exontrol/ExToolBar/Sample/EBN/MSPaint-Ribbon/mspr_select.ebn");
	var_Appearance->Add(13,"C:/Program Files/Exontrol/ExToolBar/Sample/EBN/MSPaint-Ribbon/mspr_bordert.ebn");
	var_Appearance->Add(14,"C:/Program Files/Exontrol/ExToolBar/Sample/EBN/MSPaint-Ribbon/mspr_buttond.ebn");
	var_Appearance->Add(15,"C:/Program Files/Exontrol/ExToolBar/Sample/EBN/MSPaint-Ribbon/mspr_buttonu.ebn");
	var_Appearance->Add(16,"C:/Program Files/Exontrol/ExToolBar/Sample/EBN/MSPaint-Ribbon/mspr_tab.ebn");
	var_Appearance->Add(17,"CP:16 0 0 0 1");
	var_Appearance->Add(18,"C:/Program Files/Exontrol/ExToolBar/Sample/EBN/MSPaint-Ribbon/mspr_tabhot.ebn");
	var_Appearance->Add(19,"C:/Program Files/Exontrol/ExToolBar/Sample/EBN/MSPaint-Ribbon/mspr_tabselhot.ebn");
	var_Appearance->Add(20,"CP:19 0 0 0 1");
spToolBar1->PutLocalAppearance(EXTOOLBARLib::ShadowBorder);
spToolBar1->PutAppearance(EXTOOLBARLib::ToolBarAppearanceEnum(0x1000000));
spToolBar1->PutForeColor(RGB(21,66,139));
spToolBar1->PutSelBackColor(0xe000000);
spToolBar1->PutBackground(EXTOOLBARLib::exToolTipAppearance,spToolBar1->GetAppearance());
spToolBar1->PutBackground(EXTOOLBARLib::BackgroundPartEnum(0x2),0xd000000);
spToolBar1->PutBackground(EXTOOLBARLib::exGroupPopupFrameSingle,0x5000000);
spToolBar1->PutBackground(EXTOOLBARLib::exGroupPopupFrameHStart,0x6000000);
spToolBar1->PutBackground(EXTOOLBARLib::exGroupPopupFrameHIntermediate,0x7000000);
spToolBar1->PutBackground(EXTOOLBARLib::exGroupPopupFrameHEnd,0x8000000);
spToolBar1->PutBackground(EXTOOLBARLib::exGroupPopupFrameVStart,0x9000000);
spToolBar1->PutBackground(EXTOOLBARLib::exGroupPopupFrameVIntermediate,0xa000000);
spToolBar1->PutBackground(EXTOOLBARLib::exGroupPopupFrameVEnd,0xb000000);
spToolBar1->PutBackground(EXTOOLBARLib::exMenuHotBackColor,0xc000000);
spToolBar1->PutBackground(EXTOOLBARLib::exMenuSelHotBackColor,0xf000000);
spToolBar1->Refresh();

186
Microsoft Office - Ribbon Like

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXTOOLBARLib' for the library: 'ExToolBar 1.0 Control Library'

	#import <ExToolBar.dll>
	using namespace EXTOOLBARLib;
*/
EXTOOLBARLib::IToolBarPtr spToolBar1 = GetDlgItem(IDC_TOOLBAR1)->GetControlUnknown();
EXTOOLBARLib::IItemsPtr var_Items = spToolBar1->GetItems();
	var_Items->PutToString(L"[id=0][group=0x03](),[id=-99][bg=0x01000000][group=0x03][itemspad=4,4,4,4]([id=9000])");
	EXTOOLBARLib::IItemsPtr var_Items1 = var_Items->GetItem(long(0))->GetItems();
		var_Items1->Add(L"",long(0),long(0))->PutPadding(L"8,0,0,0");
		EXTOOLBARLib::IItemPtr var_Item3 = var_Items1->Add(L"New Page",vtMissing,vtMissing);
			var_Item3->PutToString(_bstr_t("[id=0][typ=2][chk=1][spchk=-1][show=1][grp=10][bghot=0x12000000][bgsel=0x11000000][bgselhot=0x14000000][group=0x03][tab=9000][p") +
"ad=4,0,4,0][popupoffset=-4,-1]([id=0][group=0x03]([id=0][group=0x03]))");
			var_Item3->PutID(200);
			var_Item3->PutCaption(L"Page1");
			var_Item3->PutShowPopupAlign(EXTOOLBARLib::exShowPopupAlignDown);
			EXTOOLBARLib::IItemPtr var_Item = var_Item3->GetItems()->GetItem(long(0));
				var_Item = var_Item->GetItems()->Add(L"New Group",vtMissing,vtMissing);
					var_Item->PutToString(L"[id=0][group=0x03][itemspad=4,4,4,18][itemsbg=0x02000000][itemsbghot=0x04000000]()");
					var_Item->PutCaption(L"<b><font ;14>A");
					EXTOOLBARLib::IItemsPtr var_Items2 = var_Item->GetItems();
						var_Items2->PutBackgroundExt(L"bottom[16,text=`<fgcolor A0A0A0><font ;8>Horizontal`,align=0x11]");
						EXTOOLBARLib::IItemPtr var_Item1 = var_Items2->Add(L"",long(2),vtMissing);
							var_Item1->PutGroupPopup(EXTOOLBARLib::GroupPopupEnum(EXTOOLBARLib::exGroupPopupEqualWidth | EXTOOLBARLib::exGroupPopup));
							var_Item1->PutCaption(L"");
							EXTOOLBARLib::IItemsPtr var_Items3 = var_Item1->GetItems();
								EXTOOLBARLib::IItemPtr var_Item2 = var_Items3->Add(L"R1",vtMissing,vtMissing);
									var_Item2->PutRadioGroup(100);
									var_Item2->PutRadio(VARIANT_TRUE);
									var_Item2->PutShowCheckedAsSelected(EXTOOLBARLib::exDisplayItemHighlight);
									var_Item2->PutChecked(VARIANT_FALSE);
								EXTOOLBARLib::IItemPtr var_Item4 = var_Items3->Add(L"R2",vtMissing,vtMissing);
									var_Item4->PutRadioGroup(100);
									var_Item4->PutRadio(VARIANT_TRUE);
									var_Item4->PutShowCheckedAsSelected(EXTOOLBARLib::exDisplayItemHighlight);
									var_Item4->PutChecked(VARIANT_TRUE);
								EXTOOLBARLib::IItemPtr var_Item5 = var_Items3->Add(L"R3",vtMissing,vtMissing);
									var_Item5->PutRadioGroup(100);
									var_Item5->PutRadio(VARIANT_TRUE);
									var_Item5->PutShowCheckedAsSelected(EXTOOLBARLib::exDisplayItemHighlight);
									var_Item5->PutChecked(VARIANT_FALSE);
				var_Item1 = var_Item->GetItems()->Add(L"New Group",vtMissing,vtMissing);
					var_Item1->PutToString(L"[id=0][group=0x03][itemspad=4,4,4,18][itemsbg=0x02000000][itemsbghot=0x04000000]()");
					var_Item1->PutCaption(L"<b><font ;14>B");
					EXTOOLBARLib::IItemsPtr var_Items4 = var_Item1->GetItems();
						var_Items4->PutBackgroundExt(L"bottom[16,text=`<fgcolor A0A0A0><font ;8>Vertical`,align=0x11]");
						EXTOOLBARLib::IItemPtr var_Item6 = var_Items4->Add(L"",long(2),vtMissing);
							var_Item6->PutGroupPopup(EXTOOLBARLib::GroupPopupEnum(EXTOOLBARLib::exGroupPopupVertical | EXTOOLBARLib::exGroupPopupEqualHeight | EXTOOLBARLib::exGroupPopup));
							var_Item6->PutCaption(L"");
							EXTOOLBARLib::IItemsPtr var_Items5 = var_Item6->GetItems();
								EXTOOLBARLib::IItemPtr var_Item7 = var_Items5->Add(L"C1",vtMissing,vtMissing);
									var_Item7->PutCheck(VARIANT_TRUE);
									var_Item7->PutChecked(VARIANT_TRUE);
								EXTOOLBARLib::IItemPtr var_Item8 = var_Items5->Add(L"C2",vtMissing,vtMissing);
									var_Item8->PutCheck(VARIANT_TRUE);
									var_Item8->PutChecked(VARIANT_FALSE);
								EXTOOLBARLib::IItemPtr var_Item9 = var_Items5->Add(L"C3",vtMissing,vtMissing);
									var_Item9->PutCheck(VARIANT_TRUE);
									var_Item9->PutChecked(VARIANT_TRUE);
				var_Item->GetItems()->Add(L"",long(0),long(0))->PutPadding(L"4,0,0,0");
				var_Item2 = var_Item->GetItems()->Add(L"New Group",vtMissing,vtMissing);
					var_Item2->PutToString(L"[id=0][group=0x03][itemspad=4,4,4,18][itemsbg=0x02000000][itemsbghot=0x04000000]()");
					var_Item2->PutCaption(L"");
					EXTOOLBARLib::IItemsPtr var_Items6 = var_Item2->GetItems();
						var_Items6->PutBackgroundExt(L"bottom[16,text=`<fgcolor A0A0A0><font ;8>Mixt`,align=0x11]");
						EXTOOLBARLib::IItemPtr var_Item10 = var_Items6->Add(L"",long(0),vtMissing);
							var_Item10->PutAllowEdit(EXTOOLBARLib::AllowEditEnum(EXTOOLBARLib::exItemEditVertical | EXTOOLBARLib::exItemEditSlider));
							var_Item10->PutItemHeight(76);
							var_Item10->PutEditBorder(EXTOOLBARLib::exEditBorderNone);
							var_Item10->PutEditValue(long(25));
						EXTOOLBARLib::IItemPtr var_Item11 = var_Items6->Add(L"",long(2),vtMissing);
							var_Item11->PutGroupPopup(EXTOOLBARLib::GroupPopupEnum(EXTOOLBARLib::exGroupPopupVertical | EXTOOLBARLib::exNoGroupPopupFrame | EXTOOLBARLib::exGroupPopup));
							var_Item11->PutCaption(L"");
							EXTOOLBARLib::IItemsPtr var_Items7 = var_Item11->GetItems();
								EXTOOLBARLib::IItemPtr var_Item12 = var_Items7->Add(L"",long(2),vtMissing);
									var_Item12->PutGroupPopup(EXTOOLBARLib::GroupPopupEnum(EXTOOLBARLib::exNoGroupPopupFrame | EXTOOLBARLib::exGroupPopup));
									EXTOOLBARLib::IItemsPtr var_Items8 = var_Item12->GetItems();
										EXTOOLBARLib::IItemPtr var_Item13 = var_Items8->Add(L"Button1",long(2),vtMissing);
											var_Item13->PutShowAsButton(EXTOOLBARLib::ShowAsButtonEnum(EXTOOLBARLib::exShowAsSelectButtonBottom | EXTOOLBARLib::exShowAsButtonAutoSize));
											EXTOOLBARLib::IItemsPtr var_Items9 = var_Item13->GetItems();
												var_Items9->Add(L"Item 1",vtMissing,vtMissing);
												var_Items9->Add(L"Item 2",vtMissing,vtMissing);
												var_Items9->Add(L"Item 3",vtMissing,vtMissing);
										var_Items8->Add(L"",long(0),long(0))->PutPadding(L"4,0,0,0");
										EXTOOLBARLib::IItemPtr var_Item14 = var_Items8->Add(L"Button2",long(2),vtMissing);
											var_Item14->PutShowAsButton(EXTOOLBARLib::ShowAsButtonEnum(EXTOOLBARLib::exShowAsSelectButtonBottom | EXTOOLBARLib::exShowAsButtonAutoSize));
											EXTOOLBARLib::IItemsPtr var_Items10 = var_Item14->GetItems();
												var_Items10->Add(L"Item 4",vtMissing,vtMissing);
												var_Items10->Add(L"Item 5",vtMissing,vtMissing);
												var_Items10->Add(L"Item 6",vtMissing,vtMissing);
								EXTOOLBARLib::IItemPtr var_Item15 = var_Items7->Add(L"Popup",long(2),vtMissing);
									var_Item15->PutAlignment(EXTOOLBARLib::exCenter);
									EXTOOLBARLib::IItemsPtr var_Items11 = var_Item15->GetItems();
										var_Items11->Add(L"Item 7",vtMissing,vtMissing)->PutCheck(VARIANT_TRUE);
										var_Items11->Add(L"Item 8",vtMissing,vtMissing);
										EXTOOLBARLib::IItemsPtr var_Items12 = var_Items11->Add(L"Item 9",long(2),vtMissing)->GetItems();
											var_Items12->Add(L"Item 10",vtMissing,vtMissing);
											var_Items12->Add(L"Item 11",vtMissing,vtMissing);
											var_Items12->Add(L"Item 12",vtMissing,vtMissing);
		var_Item4 = var_Items1->Add(L"New Page",vtMissing,vtMissing);
			var_Item4->PutToString(_bstr_t("[id=0][typ=2][chk=0][spchk=-1][show=1][grp=10][bghot=0x12000000][bgsel=0x11000000][bgselhot=0x14000000][group=0x03][tab=9000][p") +
"ad=4,0,4,0][popupoffset=-4,-1]([id=0][group=0x03]([id=0][group=0x03]))");
			var_Item4->PutID(300);
			var_Item4->PutCaption(L"Page2");
			var_Item4->PutShowPopupAlign(EXTOOLBARLib::exShowPopupAlignDown);
			EXTOOLBARLib::IItemPtr var_Item16 = var_Item4->GetItems()->GetItem(long(0));
				EXTOOLBARLib::IItemsPtr var_Items13 = var_Item16->GetItems();
					EXTOOLBARLib::IItemPtr var_Item17 = var_Items13->Add(L"S1",vtMissing,vtMissing);
						var_Item17->PutItemHeight(88);
						var_Item17->PutAllowEdit(EXTOOLBARLib::AllowEditEnum(EXTOOLBARLib::exItemEditVertical | EXTOOLBARLib::exItemEditSpin | EXTOOLBARLib::exItemEditProgress));
						var_Item17->PutEditValue(long(25));
					EXTOOLBARLib::IItemPtr var_Item18 = var_Items13->Add(L"S2",vtMissing,vtMissing);
						var_Item18->PutItemHeight(88);
						var_Item18->PutAllowEdit(EXTOOLBARLib::AllowEditEnum(EXTOOLBARLib::exItemEditVertical | EXTOOLBARLib::exItemEditSpin | EXTOOLBARLib::exItemEditProgress));
						var_Item18->PutEditValue(long(50));
					EXTOOLBARLib::IItemPtr var_Item19 = var_Items13->Add(L"S3",vtMissing,vtMissing);
						var_Item19->PutItemHeight(88);
						var_Item19->PutAllowEdit(EXTOOLBARLib::AllowEditEnum(EXTOOLBARLib::exItemEditVertical | EXTOOLBARLib::exItemEditSpin | EXTOOLBARLib::exItemEditProgress));
						var_Item19->PutEditValue(long(75));
		var_Items1->Add(L"",long(0),long(0))->PutPadding(L"8,0,0,0");
spToolBar1->PutPopupFlatAppearance(VARIANT_FALSE);
EXTOOLBARLib::IAppearancePtr var_Appearance = spToolBar1->GetVisualAppearance();
	var_Appearance->Add(1,"C:\\Program Files\\Exontrol\\ExToolBar\\Sample\\EBN\\MSOffice-Ribbon\\msor_background.ebn");
	var_Appearance->Add(2,"C:\\Program Files\\Exontrol\\ExToolBar\\Sample\\EBN\\MSOffice-Ribbon\\msor_groupt.ebn");
	var_Appearance->Add(3,"C:\\Program Files\\Exontrol\\ExToolBar\\Sample\\EBN\\MSOffice-Ribbon\\msor_groupo.ebn");
	var_Appearance->Add(4,"C:\\Program Files\\Exontrol\\ExToolBar\\Sample\\EBN\\MSOffice-Ribbon\\msor_grouphot.ebn");
	var_Appearance->Add(5,"C:\\Program Files\\Exontrol\\ExToolBar\\Sample\\EBN\\MSOffice-Ribbon\\msor_frameh.ebn");
	var_Appearance->Add(6,"C:\\Program Files\\Exontrol\\ExToolBar\\Sample\\EBN\\MSOffice-Ribbon\\msor_framehs.ebn");
	var_Appearance->Add(7,"C:\\Program Files\\Exontrol\\ExToolBar\\Sample\\EBN\\MSOffice-Ribbon\\msor_framehi.ebn");
	var_Appearance->Add(8,"C:\\Program Files\\Exontrol\\ExToolBar\\Sample\\EBN\\MSOffice-Ribbon\\msor_framehe.ebn");
	var_Appearance->Add(9,"C:\\Program Files\\Exontrol\\ExToolBar\\Sample\\EBN\\MSOffice-Ribbon\\msor_framevs.ebn");
	var_Appearance->Add(10,"C:\\Program Files\\Exontrol\\ExToolBar\\Sample\\EBN\\MSOffice-Ribbon\\msor_framevi.ebn");
	var_Appearance->Add(11,"C:\\Program Files\\Exontrol\\ExToolBar\\Sample\\EBN\\MSOffice-Ribbon\\msor_frameve.ebn");
	var_Appearance->Add(12,"C:\\Program Files\\Exontrol\\ExToolBar\\Sample\\EBN\\MSOffice-Ribbon\\msor_select.ebn");
	var_Appearance->Add(13,"C:\\Program Files\\Exontrol\\ExToolBar\\Sample\\EBN\\MSOffice-Ribbon\\msor_bordert.ebn");
	var_Appearance->Add(14,"C:\\Program Files\\Exontrol\\ExToolBar\\Sample\\EBN\\MSOffice-Ribbon\\msor_buttond.ebn");
	var_Appearance->Add(15,"C:\\Program Files\\Exontrol\\ExToolBar\\Sample\\EBN\\MSOffice-Ribbon\\msor_buttonu.ebn");
	var_Appearance->Add(16,"C:\\Program Files\\Exontrol\\ExToolBar\\Sample\\EBN\\MSOffice-Ribbon\\msor_tab.ebn");
	var_Appearance->Add(17,"CP:16 0 0 0 1");
	var_Appearance->Add(18,"C:\\Program Files\\Exontrol\\ExToolBar\\Sample\\EBN\\MSOffice-Ribbon\\msor_tabhot.ebn");
	var_Appearance->Add(19,"C:\\Program Files\\Exontrol\\ExToolBar\\Sample\\EBN\\MSOffice-Ribbon\\msor_tabselhot.ebn");
	var_Appearance->Add(20,"CP:19 0 0 0 1");
spToolBar1->PutForeColor(RGB(21,66,139));
spToolBar1->PutSelBackColor(0xe000000);
spToolBar1->PutLocalAppearance(EXTOOLBARLib::ShadowBorder);
spToolBar1->PutAppearance(EXTOOLBARLib::ToolBarAppearanceEnum(0x1000000));
spToolBar1->PutBackground(EXTOOLBARLib::exToolTipAppearance,spToolBar1->GetAppearance());
spToolBar1->PutBackground(EXTOOLBARLib::BackgroundPartEnum(0x2),0xd000000);
spToolBar1->PutBackground(EXTOOLBARLib::exGroupPopupFrameSingle,0x5000000);
spToolBar1->PutBackground(EXTOOLBARLib::exGroupPopupFrameHStart,0x6000000);
spToolBar1->PutBackground(EXTOOLBARLib::exGroupPopupFrameHIntermediate,0x7000000);
spToolBar1->PutBackground(EXTOOLBARLib::exGroupPopupFrameHEnd,0x8000000);
spToolBar1->PutBackground(EXTOOLBARLib::exGroupPopupFrameVStart,0x9000000);
spToolBar1->PutBackground(EXTOOLBARLib::exGroupPopupFrameVIntermediate,0xa000000);
spToolBar1->PutBackground(EXTOOLBARLib::exGroupPopupFrameVEnd,0xb000000);
spToolBar1->PutBackground(EXTOOLBARLib::exMenuHotBackColor,0xc000000);
spToolBar1->PutBackground(EXTOOLBARLib::exMenuSelHotBackColor,0xf000000);
spToolBar1->Refresh();

185
How I can assign buttons to a tab

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXTOOLBARLib' for the library: 'ExToolBar 1.0 Control Library'

	#import <ExToolBar.dll>
	using namespace EXTOOLBARLib;
*/
EXTOOLBARLib::IToolBarPtr spToolBar1 = GetDlgItem(IDC_TOOLBAR1)->GetControlUnknown();
spToolBar1->PutBackground(EXTOOLBARLib::exMenuSelBorderColor,RGB(240,240,240));
EXTOOLBARLib::IItemsPtr var_Items = spToolBar1->GetItems();
	var_Items->PutToString(_bstr_t("[id=0][group=0x0103][itemspad=4,4,4,4]([id=-10][group=0x03](),[id=-99][bg=RGB(240,240,240)][group=0x03][itemspad=4,4,4,4]([id=-") +
"100]))");
	EXTOOLBARLib::IItemsPtr var_Items1 = var_Items->GetItem(long(-10))->GetItems();
		var_Items1->Add(L"",long(0),long(0))->PutPadding(L"8,0,0,0");
		EXTOOLBARLib::IItemPtr var_Item = var_Items1->Add(L"New Page",vtMissing,vtMissing);
			var_Item->PutToString(_bstr_t("[typ=2][chk=1][spchk=-1][show=1][grp=10][bghot=RGB(255,255,255)][bgsel=RGB(240,240,240)][bgselhot=RGB(240,240,240)][height=16][") +
"group=0x03][tab=-100][pad=2,0,2,0][popupalign=0x01]([id=0][group=0x03]([]))");
			var_Item->PutCaption(L"Page<off -5><font ;5><b>1</b></font></off>");
			var_Item->PutID(-1000);
			EXTOOLBARLib::IItemsPtr var_Items2 = var_Item->GetItems()->GetItem(long(0))->GetItems();
				var_Items2->Add(L"Button 1",vtMissing,vtMissing)->PutShowAsButton(EXTOOLBARLib::ShowAsButtonEnum(EXTOOLBARLib::exShowAsButtonAutoSize | EXTOOLBARLib::exShowAsButton));
				var_Items2->Add(L"Button 2",vtMissing,vtMissing)->PutShowAsButton(EXTOOLBARLib::ShowAsButtonEnum(EXTOOLBARLib::exShowAsButtonAutoSize | EXTOOLBARLib::exShowAsButton));
				var_Items2->Add(L"Button 3",vtMissing,vtMissing)->PutShowAsButton(EXTOOLBARLib::ShowAsButtonEnum(EXTOOLBARLib::exShowAsButtonAutoSize | EXTOOLBARLib::exShowAsButton));
		EXTOOLBARLib::IItemPtr var_Item1 = var_Items1->Add(L"New Page",vtMissing,vtMissing);
			var_Item1->PutToString(_bstr_t("[typ=2][chk=0][spchk=-1][show=1][grp=10][bghot=RGB(255,255,255)][bgsel=RGB(240,240,240)][bgselhot=RGB(240,240,240)][height=16][") +
"group=0x03][tab=-100][pad=2,0,2,0][popupalign=0x01]([id=0][group=0x03]([]))");
			var_Item1->PutCaption(L"Page<off -5><font ;5><b>2</b></font></off>");
			var_Item1->PutID(-1001);
			EXTOOLBARLib::IItemsPtr var_Items3 = var_Item1->GetItems()->GetItem(long(0))->GetItems();
				var_Items3->Add(L"Button 3",vtMissing,vtMissing)->PutShowAsButton(EXTOOLBARLib::ShowAsButtonEnum(EXTOOLBARLib::exShowAsButtonAutoSize | EXTOOLBARLib::exShowAsButton));
				var_Items3->Add(L"Button 4",vtMissing,vtMissing)->PutShowAsButton(EXTOOLBARLib::ShowAsButtonEnum(EXTOOLBARLib::exShowAsButtonAutoSize | EXTOOLBARLib::exShowAsButton));
		var_Items1->Add(L"",long(0),long(0))->PutPadding(L"8,0,0,0");
spToolBar1->Refresh();

184
How can I hide an item

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXTOOLBARLib' for the library: 'ExToolBar 1.0 Control Library'

	#import <ExToolBar.dll>
	using namespace EXTOOLBARLib;
*/
EXTOOLBARLib::IToolBarPtr spToolBar1 = GetDlgItem(IDC_TOOLBAR1)->GetControlUnknown();
EXTOOLBARLib::IItemsPtr var_Items = spToolBar1->GetItems();
	var_Items->Add(L"Item 1",vtMissing,vtMissing)->PutVisible(VARIANT_FALSE);
	var_Items->Add(L"Item 2",vtMissing,vtMissing);
spToolBar1->Refresh();

183
How do I quickly load items into the control

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXTOOLBARLib' for the library: 'ExToolBar 1.0 Control Library'

	#import <ExToolBar.dll>
	using namespace EXTOOLBARLib;
*/
EXTOOLBARLib::IToolBarPtr spToolBar1 = GetDlgItem(IDC_TOOLBAR1)->GetControlUnknown();
spToolBar1->PutToString(L"Check 1[chk],Check 2[chk=1]");

182
Are there any functions to get the size/width/height of the control so all items fit the control's client area

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXTOOLBARLib' for the library: 'ExToolBar 1.0 Control Library'

	#import <ExToolBar.dll>
	using namespace EXTOOLBARLib;
*/
EXTOOLBARLib::IToolBarPtr spToolBar1 = GetDlgItem(IDC_TOOLBAR1)->GetControlUnknown();
EXTOOLBARLib::IItemsPtr var_Items = spToolBar1->GetItems();
	var_Items->Add(L"Item 1",vtMissing,vtMissing);
	var_Items->Add(L"Item 2",vtMissing,vtMissing);
spToolBar1->Refresh();
OutputDebugStringW( _bstr_t(spToolBar1->GetRequiredWidth()) );
OutputDebugStringW( _bstr_t(spToolBar1->GetRequiredHeight()) );

181
How do I get the item giving its caption

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXTOOLBARLib' for the library: 'ExToolBar 1.0 Control Library'

	#import <ExToolBar.dll>
	using namespace EXTOOLBARLib;
*/
EXTOOLBARLib::IToolBarPtr spToolBar1 = GetDlgItem(IDC_TOOLBAR1)->GetControlUnknown();
EXTOOLBARLib::IItemsPtr var_Items = spToolBar1->GetItems();
	var_Items->Add(L"Item 1",vtMissing,vtMissing)->PutID(1000);
	var_Items->Add(L"Item 2",vtMissing,vtMissing)->PutID(1001);
spToolBar1->GetItem("Item 1")->PutBold(VARIANT_TRUE);
spToolBar1->Refresh();

180
How do I get the item giving its identifier

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXTOOLBARLib' for the library: 'ExToolBar 1.0 Control Library'

	#import <ExToolBar.dll>
	using namespace EXTOOLBARLib;
*/
EXTOOLBARLib::IToolBarPtr spToolBar1 = GetDlgItem(IDC_TOOLBAR1)->GetControlUnknown();
EXTOOLBARLib::IItemsPtr var_Items = spToolBar1->GetItems();
	var_Items->Add(L"Item 1",vtMissing,vtMissing)->PutID(1000);
	var_Items->Add(L"Item 2",vtMissing,vtMissing)->PutID(1001);
spToolBar1->GetItem(long(1000))->PutBold(VARIANT_TRUE);
spToolBar1->Refresh();

179
Can I change the cursor where it hovers the item

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXTOOLBARLib' for the library: 'ExToolBar 1.0 Control Library'

	#import <ExToolBar.dll>
	using namespace EXTOOLBARLib;
*/
EXTOOLBARLib::IToolBarPtr spToolBar1 = GetDlgItem(IDC_TOOLBAR1)->GetControlUnknown();
spToolBar1->PutCursor("exCross");
EXTOOLBARLib::IItemsPtr var_Items = spToolBar1->GetItems();
	var_Items->Add(L"Item 1",vtMissing,vtMissing);
	var_Items->Add(L"Item 2",vtMissing,vtMissing)->PutCursor("exNoDrop");
spToolBar1->Refresh();

178
I am using radio-buttons, the question is it possible to uncheck the radio-buttons, so no button is pressed in the group

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXTOOLBARLib' for the library: 'ExToolBar 1.0 Control Library'

	#import <ExToolBar.dll>
	using namespace EXTOOLBARLib;
*/
EXTOOLBARLib::IToolBarPtr spToolBar1 = GetDlgItem(IDC_TOOLBAR1)->GetControlUnknown();
spToolBar1->PutAllowToggleRadio(VARIANT_TRUE);
EXTOOLBARLib::IItemsPtr var_Items = spToolBar1->GetItems();
	EXTOOLBARLib::IItemPtr var_Item = var_Items->Add(L"Radio 1",vtMissing,long(1000));
		var_Item->PutRadio(VARIANT_TRUE);
		var_Item->PutRadioGroup(100);
	EXTOOLBARLib::IItemPtr var_Item1 = var_Items->Add(L"Radio 2",vtMissing,long(1001));
		var_Item1->PutRadio(VARIANT_TRUE);
		var_Item1->PutRadioGroup(100);
	EXTOOLBARLib::IItemPtr var_Item2 = var_Items->Add(L"Radio 2",vtMissing,long(1003));
		var_Item2->PutRadio(VARIANT_TRUE);
		var_Item2->PutRadioGroup(100);
spToolBar1->Refresh();

177
Is it possible to display the item's identifiers

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXTOOLBARLib' for the library: 'ExToolBar 1.0 Control Library'

	#import <ExToolBar.dll>
	using namespace EXTOOLBARLib;
*/
EXTOOLBARLib::IToolBarPtr spToolBar1 = GetDlgItem(IDC_TOOLBAR1)->GetControlUnknown();
spToolBar1->PutDebug(VARIANT_TRUE);
EXTOOLBARLib::IItemsPtr var_Items = spToolBar1->GetItems();
	var_Items->Add(L"Item 1",vtMissing,vtMissing)->PutID(10001);
	var_Items->Add(L"Item 2",vtMissing,vtMissing)->PutID(10002);
spToolBar1->Refresh();

176
How do I disable showing the tooltip for all control (method 2)

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXTOOLBARLib' for the library: 'ExToolBar 1.0 Control Library'

	#import <ExToolBar.dll>
	using namespace EXTOOLBARLib;
*/
EXTOOLBARLib::IToolBarPtr spToolBar1 = GetDlgItem(IDC_TOOLBAR1)->GetControlUnknown();
spToolBar1->PutAllowToolTip(VARIANT_FALSE);
EXTOOLBARLib::IItemsPtr var_Items = spToolBar1->GetItems();
	var_Items->Add(L"Item",vtMissing,vtMissing)->PutTooltip(L"this is a bit of text to be shown when cursor hovers it");
	var_Items->Add(L"Item",vtMissing,vtMissing)->PutTooltip(L"this is a bit of text to be shown when cursor hovers it");
spToolBar1->Refresh();

175
How can I lock the control, so no events occur, but no shown in gray as Enabled do

// SelectItem event - Occurs when the user selects the item.
void OnSelectItemToolBar1(LPDISPATCH   Itm)
{
	/*
		Copy and paste the following directives to your header file as
		it defines the namespace 'EXTOOLBARLib' for the library: 'ExToolBar 1.0 Control Library'
		#import <ExToolBar.dll>
		using namespace EXTOOLBARLib;
	*/
	EXTOOLBARLib::IToolBarPtr spToolBar1 = GetDlgItem(IDC_TOOLBAR1)->GetControlUnknown();
	OutputDebugStringW( L"SelectItem should not be fired while locked" );
}

EXTOOLBARLib::IToolBarPtr spToolBar1 = GetDlgItem(IDC_TOOLBAR1)->GetControlUnknown();
spToolBar1->PutLocked(VARIANT_TRUE);
EXTOOLBARLib::IItemsPtr var_Items = spToolBar1->GetItems();
	var_Items->Add(L"Disabled",vtMissing,vtMissing)->PutEnabled(VARIANT_FALSE);
	var_Items->Add(L"Item 2",vtMissing,vtMissing);
	var_Items->Add(L"Item 3",vtMissing,vtMissing);
spToolBar1->Refresh();

174
How can I disable the control

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXTOOLBARLib' for the library: 'ExToolBar 1.0 Control Library'

	#import <ExToolBar.dll>
	using namespace EXTOOLBARLib;
*/
EXTOOLBARLib::IToolBarPtr spToolBar1 = GetDlgItem(IDC_TOOLBAR1)->GetControlUnknown();
spToolBar1->PutEnabled(VARIANT_FALSE);
EXTOOLBARLib::IItemsPtr var_Items = spToolBar1->GetItems();
	var_Items->Add(L"Disabled",vtMissing,vtMissing)->PutEnabled(VARIANT_FALSE);
	var_Items->Add(L"Item 2",vtMissing,vtMissing);
	var_Items->Add(L"Item 3",vtMissing,vtMissing);
spToolBar1->Refresh();

173
How can I specify a different border/visual appearance for drop down portion of the popup menu (ebn)

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXTOOLBARLib' for the library: 'ExToolBar 1.0 Control Library'

	#import <ExToolBar.dll>
	using namespace EXTOOLBARLib;
*/
EXTOOLBARLib::IToolBarPtr spToolBar1 = GetDlgItem(IDC_TOOLBAR1)->GetControlUnknown();
spToolBar1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn");
spToolBar1->PutPopupAppearance(EXTOOLBARLib::ToolBarAppearanceEnum(0x1000000));
EXTOOLBARLib::IItemsPtr var_Items = spToolBar1->GetItems();
	EXTOOLBARLib::IItemsPtr var_Items1 = var_Items->Add(L"Popup 1",long(2),vtMissing)->GetItems();
		var_Items1->Add(L"Item 1",vtMissing,vtMissing)->PutCheck(VARIANT_TRUE);
		var_Items1->Add(L"Item 2",vtMissing,vtMissing)->PutCheck(VARIANT_TRUE);
		var_Items1->Add(L"Item 3",vtMissing,vtMissing)->PutCheck(VARIANT_TRUE);
	EXTOOLBARLib::IItemsPtr var_Items2 = var_Items->Add(L"Popup 2",long(2),vtMissing)->GetItems();
		var_Items2->Add(L"Item 4",vtMissing,vtMissing)->PutCheck(VARIANT_TRUE);
		var_Items2->Add(L"Item 5",vtMissing,vtMissing)->PutCheck(VARIANT_TRUE);
		var_Items2->Add(L"Item 6",vtMissing,vtMissing)->PutCheck(VARIANT_TRUE);
spToolBar1->Refresh();

172
How can I specify a different border for drop down portion of the popup menu

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXTOOLBARLib' for the library: 'ExToolBar 1.0 Control Library'

	#import <ExToolBar.dll>
	using namespace EXTOOLBARLib;
*/
EXTOOLBARLib::IToolBarPtr spToolBar1 = GetDlgItem(IDC_TOOLBAR1)->GetControlUnknown();
spToolBar1->PutPopupAppearance(EXTOOLBARLib::ShadowBorder);
EXTOOLBARLib::IItemsPtr var_Items = spToolBar1->GetItems();
	EXTOOLBARLib::IItemsPtr var_Items1 = var_Items->Add(L"Popup 1",long(2),vtMissing)->GetItems();
		var_Items1->Add(L"Item 1",vtMissing,vtMissing)->PutCheck(VARIANT_TRUE);
		var_Items1->Add(L"Item 2",vtMissing,vtMissing)->PutCheck(VARIANT_TRUE);
		var_Items1->Add(L"Item 3",vtMissing,vtMissing)->PutCheck(VARIANT_TRUE);
	EXTOOLBARLib::IItemsPtr var_Items2 = var_Items->Add(L"Popup 2",long(2),vtMissing)->GetItems();
		var_Items2->Add(L"Item 4",vtMissing,vtMissing)->PutCheck(VARIANT_TRUE);
		var_Items2->Add(L"Item 5",vtMissing,vtMissing)->PutCheck(VARIANT_TRUE);
		var_Items2->Add(L"Item 6",vtMissing,vtMissing)->PutCheck(VARIANT_TRUE);
spToolBar1->Refresh();

171
How can I specify a different border/visual appearance for drop down portion of the select buttons/combobox (ebn)

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXTOOLBARLib' for the library: 'ExToolBar 1.0 Control Library'

	#import <ExToolBar.dll>
	using namespace EXTOOLBARLib;
*/
EXTOOLBARLib::IToolBarPtr spToolBar1 = GetDlgItem(IDC_TOOLBAR1)->GetControlUnknown();
spToolBar1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn");
spToolBar1->PutLocalAppearance(EXTOOLBARLib::ToolBarAppearanceEnum(0x1000000));
EXTOOLBARLib::IItemsPtr var_Items = spToolBar1->GetItems();
	EXTOOLBARLib::IItemPtr var_Item = var_Items->Add(L"",long(2),vtMissing);
		var_Item->PutGroupPopup(EXTOOLBARLib::GroupPopupEnum(EXTOOLBARLib::exNoGroupPopupFrame | EXTOOLBARLib::exGroupPopup));
		EXTOOLBARLib::IItemsPtr var_Items1 = var_Item->GetItems();
			EXTOOLBARLib::IItemPtr var_Item1 = var_Items1->Add(L"Button",long(2),vtMissing);
				var_Item1->PutShowAsButton(EXTOOLBARLib::ShowAsButtonEnum(EXTOOLBARLib::exShowAsSelectButtonBottom | EXTOOLBARLib::exShowAsButtonAutoSize));
				EXTOOLBARLib::IItemsPtr var_Items2 = var_Item1->GetItems();
					var_Items2->Add(L"Item 1",vtMissing,vtMissing);
					var_Items2->Add(L"Item 2",vtMissing,vtMissing);
					var_Items2->Add(L"Item 3",vtMissing,vtMissing);
			EXTOOLBARLib::IItemPtr var_Item2 = var_Items1->Add(L"Button",long(2),vtMissing);
				var_Item2->PutShowAsButton(EXTOOLBARLib::ShowAsButtonEnum(EXTOOLBARLib::exShowAsSelectButtonBottom | EXTOOLBARLib::exShowAsButtonAutoSize));
				EXTOOLBARLib::IItemsPtr var_Items3 = var_Item2->GetItems();
					var_Items3->Add(L"Item 4",vtMissing,vtMissing);
					var_Items3->Add(L"Item 5",vtMissing,vtMissing);
					var_Items3->Add(L"Item 6",vtMissing,vtMissing);
spToolBar1->Refresh();

170
How can I specify a different border for drop down portion of the select buttons/combobox

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXTOOLBARLib' for the library: 'ExToolBar 1.0 Control Library'

	#import <ExToolBar.dll>
	using namespace EXTOOLBARLib;
*/
EXTOOLBARLib::IToolBarPtr spToolBar1 = GetDlgItem(IDC_TOOLBAR1)->GetControlUnknown();
spToolBar1->PutLocalAppearance(EXTOOLBARLib::ShadowBorder);
EXTOOLBARLib::IItemsPtr var_Items = spToolBar1->GetItems();
	EXTOOLBARLib::IItemPtr var_Item = var_Items->Add(L"",long(2),vtMissing);
		var_Item->PutGroupPopup(EXTOOLBARLib::GroupPopupEnum(EXTOOLBARLib::exNoGroupPopupFrame | EXTOOLBARLib::exGroupPopup));
		EXTOOLBARLib::IItemsPtr var_Items1 = var_Item->GetItems();
			EXTOOLBARLib::IItemPtr var_Item1 = var_Items1->Add(L"Button",long(2),vtMissing);
				var_Item1->PutShowAsButton(EXTOOLBARLib::ShowAsButtonEnum(EXTOOLBARLib::exShowAsSelectButtonBottom | EXTOOLBARLib::exShowAsButtonAutoSize));
				EXTOOLBARLib::IItemsPtr var_Items2 = var_Item1->GetItems();
					var_Items2->Add(L"Item 1",vtMissing,vtMissing);
					var_Items2->Add(L"Item 2",vtMissing,vtMissing);
					var_Items2->Add(L"Item 3",vtMissing,vtMissing);
			EXTOOLBARLib::IItemPtr var_Item2 = var_Items1->Add(L"Button",long(2),vtMissing);
				var_Item2->PutShowAsButton(EXTOOLBARLib::ShowAsButtonEnum(EXTOOLBARLib::exShowAsSelectButtonBottom | EXTOOLBARLib::exShowAsButtonAutoSize));
				EXTOOLBARLib::IItemsPtr var_Items3 = var_Item2->GetItems();
					var_Items3->Add(L"Item 4",vtMissing,vtMissing);
					var_Items3->Add(L"Item 5",vtMissing,vtMissing);
					var_Items3->Add(L"Item 6",vtMissing,vtMissing);
spToolBar1->Refresh();

169
How can I change the visual appearance for the entire control

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXTOOLBARLib' for the library: 'ExToolBar 1.0 Control Library'

	#import <ExToolBar.dll>
	using namespace EXTOOLBARLib;
*/
EXTOOLBARLib::IToolBarPtr spToolBar1 = GetDlgItem(IDC_TOOLBAR1)->GetControlUnknown();
spToolBar1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn");
spToolBar1->PutAppearance(EXTOOLBARLib::ToolBarAppearanceEnum(0x1000000));
spToolBar1->PutShowCheckedAsSelected(EXTOOLBARLib::exDisplayItemCheckHighlight);
EXTOOLBARLib::IItemsPtr var_Items = spToolBar1->GetItems();
	var_Items->PutPadding(L"4,4,4,4");
	EXTOOLBARLib::IItemPtr var_Item = var_Items->Add(L"Radio 1",vtMissing,vtMissing);
		var_Item->PutRadio(VARIANT_TRUE);
		var_Item->PutChecked(VARIANT_TRUE);
	var_Items->Add(L"Radio 2",vtMissing,vtMissing)->PutRadio(VARIANT_TRUE);
	var_Items->Add(L"Radio 3",vtMissing,vtMissing)->PutRadio(VARIANT_TRUE);
spToolBar1->Refresh();

168
How can I show a border arround the control
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXTOOLBARLib' for the library: 'ExToolBar 1.0 Control Library'

	#import <ExToolBar.dll>
	using namespace EXTOOLBARLib;
*/
EXTOOLBARLib::IToolBarPtr spToolBar1 = GetDlgItem(IDC_TOOLBAR1)->GetControlUnknown();
spToolBar1->PutAppearance(EXTOOLBARLib::FlatBorder);
spToolBar1->PutShowCheckedAsSelected(EXTOOLBARLib::exDisplayItemCheckHighlight);
EXTOOLBARLib::IItemsPtr var_Items = spToolBar1->GetItems();
	var_Items->PutPadding(L"4,4,4,4");
	EXTOOLBARLib::IItemPtr var_Item = var_Items->Add(L"Check 1",vtMissing,vtMissing);
		var_Item->PutChecked(VARIANT_TRUE);
		var_Item->PutCheck(VARIANT_TRUE);
	EXTOOLBARLib::IItemPtr var_Item1 = var_Items->Add(L"Check 2",vtMissing,vtMissing);
		var_Item1->PutCheck(VARIANT_TRUE);
spToolBar1->Refresh();

167
Is it possible to change the item's background color when check/uncheck the item

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXTOOLBARLib' for the library: 'ExToolBar 1.0 Control Library'

	#import <ExToolBar.dll>
	using namespace EXTOOLBARLib;
*/
EXTOOLBARLib::IToolBarPtr spToolBar1 = GetDlgItem(IDC_TOOLBAR1)->GetControlUnknown();
spToolBar1->PutShowCheckedAsSelected(EXTOOLBARLib::exDisplayItemCheckHighlight);
EXTOOLBARLib::IItemsPtr var_Items = spToolBar1->GetItems();
	var_Items->PutPadding(L"4,4,4,4");
	EXTOOLBARLib::IItemPtr var_Item = var_Items->Add(L"Check 1",vtMissing,vtMissing);
		var_Item->PutChecked(VARIANT_TRUE);
		var_Item->PutCheck(VARIANT_TRUE);
	EXTOOLBARLib::IItemPtr var_Item1 = var_Items->Add(L"Check 2",vtMissing,vtMissing);
		var_Item1->PutCheck(VARIANT_TRUE);
spToolBar1->Refresh();

166
How can I change the colors for hot/hover items

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXTOOLBARLib' for the library: 'ExToolBar 1.0 Control Library'

	#import <ExToolBar.dll>
	using namespace EXTOOLBARLib;
*/
EXTOOLBARLib::IToolBarPtr spToolBar1 = GetDlgItem(IDC_TOOLBAR1)->GetControlUnknown();
spToolBar1->PutBackground(EXTOOLBARLib::exMenuHotBackColor,RGB(0,0,1));
spToolBar1->PutBackground(EXTOOLBARLib::exMenuHotForeColor,RGB(255,255,255));
spToolBar1->PutBackground(EXTOOLBARLib::exMenuSelHotBackColor,RGB(128,128,128));
spToolBar1->PutBackground(EXTOOLBARLib::exMenuSelHotForeColor,RGB(255,255,255));
spToolBar1->PutSelBackColor(RGB(128,128,128));
spToolBar1->PutSelForeColor(RGB(255,255,255));
spToolBar1->PutBackground(EXTOOLBARLib::exMenuSelBorderColor,RGB(128,128,128));
spToolBar1->PutShowCheckedAsSelected(EXTOOLBARLib::exDisplayItemCheckHighlight);
EXTOOLBARLib::IItemsPtr var_Items = spToolBar1->GetItems();
	var_Items->PutPadding(L"4,4,4,4");
	var_Items->Add(L"",vtMissing,vtMissing)->PutToString(L"[group=3](Item 1,Item 2)");
	EXTOOLBARLib::IItemPtr var_Item = var_Items->Add(L"Check 1",vtMissing,vtMissing);
		var_Item->PutChecked(VARIANT_TRUE);
		var_Item->PutCheck(VARIANT_TRUE);
	EXTOOLBARLib::IItemPtr var_Item1 = var_Items->Add(L"Check 2",vtMissing,vtMissing);
		var_Item1->PutCheck(VARIANT_TRUE);
spToolBar1->Refresh();

165
How do I change the visual appearance of the groups (vertical)

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXTOOLBARLib' for the library: 'ExToolBar 1.0 Control Library'

	#import <ExToolBar.dll>
	using namespace EXTOOLBARLib;
*/
EXTOOLBARLib::IToolBarPtr spToolBar1 = GetDlgItem(IDC_TOOLBAR1)->GetControlUnknown();
EXTOOLBARLib::IAppearancePtr var_Appearance = spToolBar1->GetVisualAppearance();
	var_Appearance->Add(1,"c:\\exontrol\\images\\normal.ebn");
	var_Appearance->Add(2,"c:\\exontrol\\images\\pushed.ebn");
	var_Appearance->Add(3,"c:\\exontrol\\images\\hot.ebn");
spToolBar1->PutBackground(EXTOOLBARLib::exGroupPopupFrameSingle,0x1000000);
spToolBar1->PutBackground(EXTOOLBARLib::exGroupPopupFrameVStart,0x1000000);
spToolBar1->PutBackground(EXTOOLBARLib::exGroupPopupFrameVIntermediate,0x2000000);
spToolBar1->PutBackground(EXTOOLBARLib::exGroupPopupFrameVEnd,0x3000000);
spToolBar1->PutBackground(EXTOOLBARLib::exGroupPopupFrameSolid,RGB(255,0,0));
EXTOOLBARLib::IItemsPtr var_Items = spToolBar1->GetItems();
	EXTOOLBARLib::IItemPtr var_Item = var_Items->Add(L"",long(2),vtMissing);
		var_Item->PutGroupPopup(EXTOOLBARLib::GroupPopupEnum(EXTOOLBARLib::exNoGroupPopupFrame | EXTOOLBARLib::exGroupPopup));
		EXTOOLBARLib::IItemsPtr var_Items1 = var_Item->GetItems();
			EXTOOLBARLib::IItemPtr var_Item1 = var_Items1->Add(L"Vertical",long(2),vtMissing);
				var_Item1->PutAlignment(EXTOOLBARLib::exCenter);
				var_Item1->PutGroupPopup(EXTOOLBARLib::GroupPopupEnum(EXTOOLBARLib::exGroupPopupVertical | EXTOOLBARLib::exGroupPopup));
				EXTOOLBARLib::IItemsPtr var_Items2 = var_Item1->GetItems();
					var_Items2->Add(L"Item 1",vtMissing,vtMissing);
					var_Items2->Add(L"Item 2",vtMissing,vtMissing);
					var_Items2->Add(L"Item 3",vtMissing,vtMissing);
					var_Items2->Add(L"Item 4",vtMissing,vtMissing);
					var_Items2->Add(L"Item 5",vtMissing,vtMissing);
			var_Items1->Add(L"",vtMissing,vtMissing)->PutCaptionWidth(12);
			EXTOOLBARLib::IItemPtr var_Item2 = var_Items1->Add(L"Vertical",long(2),vtMissing);
				var_Item2->PutAlignment(EXTOOLBARLib::exCenter);
				var_Item2->PutGroupPopup(EXTOOLBARLib::GroupPopupEnum(EXTOOLBARLib::exGroupPopupVertical | EXTOOLBARLib::exGroupPopupFrameThickBox | EXTOOLBARLib::exGroupPopupFrameSolidBox | EXTOOLBARLib::exGroupPopup));
				EXTOOLBARLib::IItemsPtr var_Items3 = var_Item2->GetItems();
					var_Items3->Add(L"Item 1",vtMissing,vtMissing);
					var_Items3->Add(L"Item 2",vtMissing,vtMissing);
					var_Items3->Add(L"Item 3",vtMissing,vtMissing);
					var_Items3->Add(L"Item 4",vtMissing,vtMissing);
					var_Items3->Add(L"Item 5",vtMissing,vtMissing);
spToolBar1->Refresh();

164
How do I change the visual appearance of the groups (horizontal)

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXTOOLBARLib' for the library: 'ExToolBar 1.0 Control Library'

	#import <ExToolBar.dll>
	using namespace EXTOOLBARLib;
*/
EXTOOLBARLib::IToolBarPtr spToolBar1 = GetDlgItem(IDC_TOOLBAR1)->GetControlUnknown();
EXTOOLBARLib::IAppearancePtr var_Appearance = spToolBar1->GetVisualAppearance();
	var_Appearance->Add(1,"c:\\exontrol\\images\\normal.ebn");
	var_Appearance->Add(2,"c:\\exontrol\\images\\pushed.ebn");
	var_Appearance->Add(3,"c:\\exontrol\\images\\hot.ebn");
spToolBar1->PutBackground(EXTOOLBARLib::exGroupPopupFrameSingle,0x1000000);
spToolBar1->PutBackground(EXTOOLBARLib::exGroupPopupFrameHStart,0x1000000);
spToolBar1->PutBackground(EXTOOLBARLib::exGroupPopupFrameHIntermediate,0x2000000);
spToolBar1->PutBackground(EXTOOLBARLib::exGroupPopupFrameHEnd,0x3000000);
spToolBar1->PutBackground(EXTOOLBARLib::exGroupPopupFrameSolid,RGB(255,0,0));
EXTOOLBARLib::IItemsPtr var_Items = spToolBar1->GetItems();
	EXTOOLBARLib::IItemPtr var_Item = var_Items->Add(L"Horizontal Group",long(2),vtMissing);
		var_Item->PutGroupPopup(EXTOOLBARLib::exGroupPopup);
		EXTOOLBARLib::IItemsPtr var_Items1 = var_Item->GetItems();
			var_Items1->Add(L"Item 1",vtMissing,vtMissing);
			var_Items1->Add(L"Item 2",vtMissing,vtMissing);
			var_Items1->Add(L"Item 3",vtMissing,vtMissing);
			var_Items1->Add(L"Item 4",vtMissing,vtMissing);
			var_Items1->Add(L"Item 5",vtMissing,vtMissing);
	var_Items->Add(L"",vtMissing,vtMissing)->PutToString(L"Horizontal Group[group=193](Item 1,Item 2,Item 3,Item 4,Item 5)");
spToolBar1->Refresh();

163
How can I change the visual appearance of the separator item

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXTOOLBARLib' for the library: 'ExToolBar 1.0 Control Library'

	#import <ExToolBar.dll>
	using namespace EXTOOLBARLib;
*/
EXTOOLBARLib::IToolBarPtr spToolBar1 = GetDlgItem(IDC_TOOLBAR1)->GetControlUnknown();
spToolBar1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn");
spToolBar1->PutBackground(EXTOOLBARLib::exMenuSeparatorItem,0x1000000);
EXTOOLBARLib::IItemsPtr var_Items = spToolBar1->GetItems();
	var_Items->Add(L"Item",vtMissing,vtMissing)->PutCaptionWidth(128);
	var_Items->Add(L"",long(1),vtMissing);
	var_Items->Add(L"Item",vtMissing,vtMissing)->PutCaptionWidth(128);
	var_Items->Add(L"",vtMissing,vtMissing)->PutToString(L"<font ;5>separator[sep]");
spToolBar1->Refresh();

162
How can I change the visual appearance of the drop down of the control (normal.2)

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXTOOLBARLib' for the library: 'ExToolBar 1.0 Control Library'

	#import <ExToolBar.dll>
	using namespace EXTOOLBARLib;
*/
EXTOOLBARLib::IToolBarPtr spToolBar1 = GetDlgItem(IDC_TOOLBAR1)->GetControlUnknown();
EXTOOLBARLib::IAppearancePtr var_Appearance = spToolBar1->GetVisualAppearance();
	var_Appearance->Add(1,"c:\\exontrol\\images\\normal.ebn");
	var_Appearance->Add(2,"c:\\exontrol\\images\\pushed.ebn");
spToolBar1->PutPopupFlatImageWidth(0);
EXTOOLBARLib::IItemsPtr var_Items = spToolBar1->GetItems();
	EXTOOLBARLib::IItemsPtr var_Items1 = var_Items->Add(L"Popup",long(2),vtMissing)->GetItems();
		var_Items1->Add(L"Item 1",vtMissing,vtMissing)->PutCheck(VARIANT_TRUE);
		var_Items1->Add(L"Item 2",vtMissing,vtMissing)->PutCheck(VARIANT_TRUE);
		var_Items1->Add(L"Item 3",vtMissing,vtMissing)->PutCheck(VARIANT_TRUE);
		var_Items1->PutPopupAppearance(EXTOOLBARLib::ToolBarAppearanceEnum(0x1000000));
spToolBar1->Refresh();

161
How can I change the visual appearance of the drop down of the control (normal.1)

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXTOOLBARLib' for the library: 'ExToolBar 1.0 Control Library'

	#import <ExToolBar.dll>
	using namespace EXTOOLBARLib;
*/
EXTOOLBARLib::IToolBarPtr spToolBar1 = GetDlgItem(IDC_TOOLBAR1)->GetControlUnknown();
EXTOOLBARLib::IAppearancePtr var_Appearance = spToolBar1->GetVisualAppearance();
	var_Appearance->Add(1,"c:\\exontrol\\images\\normal.ebn");
	var_Appearance->Add(2,"c:\\exontrol\\images\\pushed.ebn");
spToolBar1->PutPopupFlatAppearance(VARIANT_FALSE);
EXTOOLBARLib::IItemsPtr var_Items = spToolBar1->GetItems();
	EXTOOLBARLib::IItemsPtr var_Items1 = var_Items->Add(L"Popup",long(2),vtMissing)->GetItems();
		var_Items1->Add(L"Item 1",vtMissing,vtMissing)->PutCheck(VARIANT_TRUE);
		var_Items1->Add(L"Item 2",vtMissing,vtMissing)->PutCheck(VARIANT_TRUE);
		var_Items1->Add(L"Item 3",vtMissing,vtMissing)->PutCheck(VARIANT_TRUE);
		var_Items1->PutPopupAppearance(EXTOOLBARLib::ToolBarAppearanceEnum(0x1000000));
spToolBar1->Refresh();

160
How can I change the visual appearance of the drop down of the control (flat)

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXTOOLBARLib' for the library: 'ExToolBar 1.0 Control Library'

	#import <ExToolBar.dll>
	using namespace EXTOOLBARLib;
*/
EXTOOLBARLib::IToolBarPtr spToolBar1 = GetDlgItem(IDC_TOOLBAR1)->GetControlUnknown();
EXTOOLBARLib::IAppearancePtr var_Appearance = spToolBar1->GetVisualAppearance();
	var_Appearance->Add(1,"c:\\exontrol\\images\\normal.ebn");
	var_Appearance->Add(2,"c:\\exontrol\\images\\pushed.ebn");
spToolBar1->PutPopupFlatBackColor(0x2000000);
spToolBar1->PutBackground(EXTOOLBARLib::exMenuFlatLineColor,spToolBar1->GetPopupFlatBackColor());
EXTOOLBARLib::IItemsPtr var_Items = spToolBar1->GetItems();
	EXTOOLBARLib::IItemsPtr var_Items1 = var_Items->Add(L"Popup",long(2),vtMissing)->GetItems();
		var_Items1->Add(L"Item 1",vtMissing,vtMissing)->PutCheck(VARIANT_TRUE);
		var_Items1->Add(L"Item 2",vtMissing,vtMissing)->PutCheck(VARIANT_TRUE);
		var_Items1->Add(L"Item 3",vtMissing,vtMissing)->PutCheck(VARIANT_TRUE);
		var_Items1->PutPopupAppearance(EXTOOLBARLib::ToolBarAppearanceEnum(0x1000000));
spToolBar1->Refresh();

159
How can I change the visual appearance of the flat portion of the drop down of the control

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXTOOLBARLib' for the library: 'ExToolBar 1.0 Control Library'

	#import <ExToolBar.dll>
	using namespace EXTOOLBARLib;
*/
EXTOOLBARLib::IToolBarPtr spToolBar1 = GetDlgItem(IDC_TOOLBAR1)->GetControlUnknown();
spToolBar1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn");
spToolBar1->PutPopupFlatBackColor(0x1000000);
spToolBar1->PutBackground(EXTOOLBARLib::exMenuFlatLineColor,spToolBar1->GetPopupFlatBackColor());
EXTOOLBARLib::IItemsPtr var_Items = spToolBar1->GetItems();
	EXTOOLBARLib::IItemsPtr var_Items1 = var_Items->Add(L"Popup",long(2),vtMissing)->GetItems();
		var_Items1->Add(L"Item 1",vtMissing,vtMissing)->PutCheck(VARIANT_TRUE);
		var_Items1->Add(L"Item 2",vtMissing,vtMissing)->PutCheck(VARIANT_TRUE);
		var_Items1->Add(L"Item 3",vtMissing,vtMissing)->PutCheck(VARIANT_TRUE);
		var_Items1->PutPopupAppearance(EXTOOLBARLib::ShadowBorder);
spToolBar1->Refresh();

158
How can I change the visual appearance of the radio-buttons to be displayed in the toolbar control (ebn)

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXTOOLBARLib' for the library: 'ExToolBar 1.0 Control Library'

	#import <ExToolBar.dll>
	using namespace EXTOOLBARLib;
*/
EXTOOLBARLib::IToolBarPtr spToolBar1 = GetDlgItem(IDC_TOOLBAR1)->GetControlUnknown();
EXTOOLBARLib::IAppearancePtr var_Appearance = spToolBar1->GetVisualAppearance();
	var_Appearance->Add(1,"c:\\exontrol\\images\\normal.ebn");
	var_Appearance->Add(2,"c:\\exontrol\\images\\pushed.ebn");
spToolBar1->PutBackground(EXTOOLBARLib::exRadioButtonState0,0x1000000);
spToolBar1->PutBackground(EXTOOLBARLib::exRadioButtonState1,0x2000000);
EXTOOLBARLib::IItemsPtr var_Items = spToolBar1->GetItems();
	EXTOOLBARLib::IItemPtr var_Item = var_Items->Add(L"",long(2),vtMissing);
		var_Item->PutGroupPopup(EXTOOLBARLib::exGroupPopup);
		EXTOOLBARLib::IItemsPtr var_Items1 = var_Item->GetItems();
			EXTOOLBARLib::IItemPtr var_Item1 = var_Items1->Add(L"Radio 1",vtMissing,long(1000));
				var_Item1->PutRadio(VARIANT_TRUE);
				var_Item1->PutRadioGroup(100);
			EXTOOLBARLib::IItemPtr var_Item2 = var_Items1->Add(L"Radio 2",vtMissing,long(1001));
				var_Item2->PutRadio(VARIANT_TRUE);
				var_Item2->PutRadioGroup(100);
			EXTOOLBARLib::IItemPtr var_Item3 = var_Items1->Add(L"Radio 2",vtMissing,long(1003));
				var_Item3->PutRadio(VARIANT_TRUE);
				var_Item3->PutRadioGroup(100);
			var_Items1->GetItem(long(1000))->PutChecked(VARIANT_TRUE);
spToolBar1->Refresh();

157
How can I change the visual appearance of the check-boxes to be displayed in the toolbar control (ebn)

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXTOOLBARLib' for the library: 'ExToolBar 1.0 Control Library'

	#import <ExToolBar.dll>
	using namespace EXTOOLBARLib;
*/
EXTOOLBARLib::IToolBarPtr spToolBar1 = GetDlgItem(IDC_TOOLBAR1)->GetControlUnknown();
EXTOOLBARLib::IAppearancePtr var_Appearance = spToolBar1->GetVisualAppearance();
	var_Appearance->Add(1,"c:\\exontrol\\images\\normal.ebn");
	var_Appearance->Add(2,"c:\\exontrol\\images\\pushed.ebn");
spToolBar1->PutBackground(EXTOOLBARLib::exCheckBoxState0,0x1000000);
spToolBar1->PutBackground(EXTOOLBARLib::exCheckBoxState1,0x2000000);
EXTOOLBARLib::IItemsPtr var_Items = spToolBar1->GetItems();
	EXTOOLBARLib::IItemPtr var_Item = var_Items->Add(L"",long(2),vtMissing);
		var_Item->PutGroupPopup(EXTOOLBARLib::GroupPopupEnum(EXTOOLBARLib::exNoGroupPopupFrame | EXTOOLBARLib::exGroupPopup));
		EXTOOLBARLib::IItemsPtr var_Items1 = var_Item->GetItems();
			EXTOOLBARLib::IItemPtr var_Item1 = var_Items1->Add(L"Check 1",vtMissing,vtMissing);
				var_Item1->PutCheck(VARIANT_TRUE);
				var_Item1->PutChecked(VARIANT_TRUE);
			var_Items1->Add(L"Check 2",vtMissing,vtMissing)->PutCheck(VARIANT_TRUE);
spToolBar1->Refresh();

156
How can I change the visual appearance of the tooltips to be displayed in the toolbar control (ebn)

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXTOOLBARLib' for the library: 'ExToolBar 1.0 Control Library'

	#import <ExToolBar.dll>
	using namespace EXTOOLBARLib;
*/
EXTOOLBARLib::IToolBarPtr spToolBar1 = GetDlgItem(IDC_TOOLBAR1)->GetControlUnknown();
EXTOOLBARLib::IAppearancePtr var_Appearance = spToolBar1->GetVisualAppearance();
	var_Appearance->Add(1,"c:\\exontrol\\images\\normal.ebn");
	var_Appearance->Add(2,"c:\\exontrol\\images\\pushed.ebn");
spToolBar1->PutToolTipDelay(1);
spToolBar1->PutBackground(EXTOOLBARLib::exToolTipAppearance,0x1000000);
spToolBar1->PutBackground(EXTOOLBARLib::exToolTipForeColor,RGB(255,0,0));
EXTOOLBARLib::IItemsPtr var_Items = spToolBar1->GetItems();
	var_Items->Add(L"Item",vtMissing,vtMissing)->PutTooltip(L"this is a bit of text to be shown when cursor hovers it");
	var_Items->Add(L"Item",vtMissing,vtMissing)->PutTooltip(L"this is a bit of text to be shown when cursor hovers it");
spToolBar1->Refresh();

155
Is it possible to change the visual appearance of the buttons to be displayed in the toolbar control (ebn)

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXTOOLBARLib' for the library: 'ExToolBar 1.0 Control Library'

	#import <ExToolBar.dll>
	using namespace EXTOOLBARLib;
*/
EXTOOLBARLib::IToolBarPtr spToolBar1 = GetDlgItem(IDC_TOOLBAR1)->GetControlUnknown();
EXTOOLBARLib::IAppearancePtr var_Appearance = spToolBar1->GetVisualAppearance();
	var_Appearance->Add(1,"c:\\exontrol\\images\\normal.ebn");
	var_Appearance->Add(2,"c:\\exontrol\\images\\pushed.ebn");
spToolBar1->PutBackground(EXTOOLBARLib::BackgroundPartEnum(0x2),0x1000000);
spToolBar1->PutBackground(EXTOOLBARLib::BackgroundPartEnum(0x3),0x2000000);
spToolBar1->PutBackground(EXTOOLBARLib::exMenuSeparatorSelectButton,RGB(255,0,0));
spToolBar1->PutBackground(EXTOOLBARLib::exMenuSeparatorSelectButtonBottom,RGB(0,0,255));
EXTOOLBARLib::IItemsPtr var_Items = spToolBar1->GetItems();
	var_Items->PutPadding(L"4,4,4,4");
	var_Items->Add(L"Button",vtMissing,vtMissing)->PutShowAsButton(EXTOOLBARLib::ShowAsButtonEnum(EXTOOLBARLib::exShowAsButtonAutoSize | EXTOOLBARLib::exShowAsButton));
	EXTOOLBARLib::IItemPtr var_Item = var_Items->Add(L"",vtMissing,vtMissing);
		var_Item->PutEnabled(VARIANT_FALSE);
		var_Item->PutItemHeight(4);
	EXTOOLBARLib::IItemPtr var_Item1 = var_Items->Add(L"Button",long(2),vtMissing);
		var_Item1->PutShowAsButton(EXTOOLBARLib::ShowAsButtonEnum(EXTOOLBARLib::exShowAsSelectButtonBottom | EXTOOLBARLib::exShowAsButtonAutoSize));
		EXTOOLBARLib::IItemsPtr var_Items1 = var_Item1->GetItems();
			var_Items1->PutPopupAppearance(EXTOOLBARLib::ShadowBorder);
			var_Items1->Add(L"Item 1",vtMissing,vtMissing);
			var_Items1->Add(L"Item 2",vtMissing,vtMissing);
			var_Items1->Add(L"Item 3",vtMissing,vtMissing);
	EXTOOLBARLib::IItemPtr var_Item2 = var_Items->Add(L"",vtMissing,vtMissing);
		var_Item2->PutEnabled(VARIANT_FALSE);
		var_Item2->PutItemHeight(4);
	EXTOOLBARLib::IItemPtr var_Item3 = var_Items->Add(L"Button",long(2),vtMissing);
		var_Item3->PutShowAsButton(EXTOOLBARLib::ShowAsButtonEnum(EXTOOLBARLib::exShowAsSelectButton | EXTOOLBARLib::exShowAsButtonAutoSize));
		EXTOOLBARLib::IItemsPtr var_Items2 = var_Item3->GetItems();
			var_Items2->PutPopupAppearance(EXTOOLBARLib::ShadowBorder);
			var_Items2->Add(L"Item 1",vtMissing,vtMissing);
			var_Items2->Add(L"Item 2",vtMissing,vtMissing);
			var_Items2->Add(L"Item 3",vtMissing,vtMissing);
spToolBar1->Refresh();

154
I've seen that the width of the tooltip is variable. Can I make it larger

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXTOOLBARLib' for the library: 'ExToolBar 1.0 Control Library'

	#import <ExToolBar.dll>
	using namespace EXTOOLBARLib;
*/
EXTOOLBARLib::IToolBarPtr spToolBar1 = GetDlgItem(IDC_TOOLBAR1)->GetControlUnknown();
spToolBar1->PutToolTipWidth(328);
EXTOOLBARLib::IItemsPtr var_Items = spToolBar1->GetItems();
	var_Items->Add(L"Item",vtMissing,vtMissing)->PutTooltip(L"this is a bit of text to be shown when cursor hovers it");
	var_Items->Add(L"Item",vtMissing,vtMissing)->PutTooltip(L"this is a bit of text to be shown when cursor hovers it");
spToolBar1->Refresh();

153
How do I disable showing the tooltip for all control (method 1)

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXTOOLBARLib' for the library: 'ExToolBar 1.0 Control Library'

	#import <ExToolBar.dll>
	using namespace EXTOOLBARLib;
*/
EXTOOLBARLib::IToolBarPtr spToolBar1 = GetDlgItem(IDC_TOOLBAR1)->GetControlUnknown();
spToolBar1->PutToolTipDelay(0);
EXTOOLBARLib::IItemsPtr var_Items = spToolBar1->GetItems();
	var_Items->Add(L"Item",vtMissing,vtMissing)->PutTooltip(L"this is a bit of text to be shown when cursor hovers it");
	var_Items->Add(L"Item",vtMissing,vtMissing)->PutTooltip(L"this is a bit of text to be shown when cursor hovers it");
spToolBar1->Refresh();

152
How do I let the tooltip being displayed longer

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXTOOLBARLib' for the library: 'ExToolBar 1.0 Control Library'

	#import <ExToolBar.dll>
	using namespace EXTOOLBARLib;
*/
EXTOOLBARLib::IToolBarPtr spToolBar1 = GetDlgItem(IDC_TOOLBAR1)->GetControlUnknown();
spToolBar1->PutToolTipPopDelay(10000);
EXTOOLBARLib::IItemsPtr var_Items = spToolBar1->GetItems();
	var_Items->Add(L"Item",vtMissing,vtMissing)->PutTooltip(L"this is a bit of text to be shown when cursor hovers it");
	var_Items->Add(L"Item",vtMissing,vtMissing)->PutTooltip(L"this is a bit of text to be shown when cursor hovers it");
spToolBar1->Refresh();

151
How do I show the tooltip quicker

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXTOOLBARLib' for the library: 'ExToolBar 1.0 Control Library'

	#import <ExToolBar.dll>
	using namespace EXTOOLBARLib;
*/
EXTOOLBARLib::IToolBarPtr spToolBar1 = GetDlgItem(IDC_TOOLBAR1)->GetControlUnknown();
spToolBar1->PutToolTipDelay(1);
EXTOOLBARLib::IItemsPtr var_Items = spToolBar1->GetItems();
	var_Items->Add(L"Item",vtMissing,vtMissing)->PutTooltip(L"this is a bit of text to be shown when cursor hovers it");
	var_Items->Add(L"Item",vtMissing,vtMissing)->PutTooltip(L"this is a bit of text to be shown when cursor hovers it");
spToolBar1->Refresh();

150
How can I get the version of the control I am running

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXTOOLBARLib' for the library: 'ExToolBar 1.0 Control Library'

	#import <ExToolBar.dll>
	using namespace EXTOOLBARLib;
*/
EXTOOLBARLib::IToolBarPtr spToolBar1 = GetDlgItem(IDC_TOOLBAR1)->GetControlUnknown();
OutputDebugStringW( spToolBar1->GetVersion() );

149
How can I align the picture on the control's background

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXTOOLBARLib' for the library: 'ExToolBar 1.0 Control Library'

	#import <ExToolBar.dll>
	using namespace EXTOOLBARLib;
*/
EXTOOLBARLib::IToolBarPtr spToolBar1 = GetDlgItem(IDC_TOOLBAR1)->GetControlUnknown();
spToolBar1->PutPicture(IPictureDispPtr(((ObjectPtr)(spToolBar1->ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\card.png`)")))));
spToolBar1->PutPictureDisplay(EXTOOLBARLib::UpperRight);
EXTOOLBARLib::IItemsPtr var_Items = spToolBar1->GetItems();
	var_Items->Add(L"Item",vtMissing,vtMissing);
	var_Items->Add(L"Item",vtMissing,vtMissing);
spToolBar1->Refresh();

148
Is it possible to place a picture on the control's background

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXTOOLBARLib' for the library: 'ExToolBar 1.0 Control Library'

	#import <ExToolBar.dll>
	using namespace EXTOOLBARLib;
*/
EXTOOLBARLib::IToolBarPtr spToolBar1 = GetDlgItem(IDC_TOOLBAR1)->GetControlUnknown();
spToolBar1->PutPicture(IPictureDispPtr(((ObjectPtr)(spToolBar1->ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\card.png`)")))));
EXTOOLBARLib::IItemsPtr var_Items = spToolBar1->GetItems();
	var_Items->Add(L"Item",vtMissing,vtMissing);
	var_Items->Add(L"Item",vtMissing,vtMissing);
spToolBar1->Refresh();

147
How can I display the item using a different font/size

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXTOOLBARLib' for the library: 'ExToolBar 1.0 Control Library'

	#import <ExToolBar.dll>
	using namespace EXTOOLBARLib;
*/
EXTOOLBARLib::IToolBarPtr spToolBar1 = GetDlgItem(IDC_TOOLBAR1)->GetControlUnknown();
EXTOOLBARLib::IItemsPtr var_Items = spToolBar1->GetItems();
	var_Items->Add(L"",vtMissing,vtMissing)->PutCaption(L"<font ;14>This is a bit of text");
	var_Items->Add(L"<font ;6>This is a bit of text",vtMissing,vtMissing);
	var_Items->Add(L"",vtMissing,vtMissing)->PutCaption(L"<font Times New Roman;22>This is a bit of text</font>. Default");
spToolBar1->Refresh();

146
How can I use the Event event, available for /COM version

// Event event - Notifies the application once the control fires an event.
void OnEventToolBar1(long   EventID)
{
	/*
		Copy and paste the following directives to your header file as
		it defines the namespace 'EXTOOLBARLib' for the library: 'ExToolBar 1.0 Control Library'
		#import <ExToolBar.dll>
		using namespace EXTOOLBARLib;
	*/
	EXTOOLBARLib::IToolBarPtr spToolBar1 = GetDlgItem(IDC_TOOLBAR1)->GetControlUnknown();
	OutputDebugStringW( L"Event" );
	OutputDebugStringW( _bstr_t(spToolBar1->GetEventParam(-2)) );
}

EXTOOLBARLib::IToolBarPtr spToolBar1 = GetDlgItem(IDC_TOOLBAR1)->GetControlUnknown();
EXTOOLBARLib::IItemsPtr var_Items = spToolBar1->GetItems();
	var_Items->Add(L"Check",vtMissing,vtMissing)->PutCheck(VARIANT_TRUE);
	EXTOOLBARLib::IItemPtr var_Item = var_Items->Add(L"Slider",vtMissing,vtMissing);
		var_Item->PutAllowEdit(EXTOOLBARLib::exItemEditSlider);
		var_Item->PutEditWidth(128);
		var_Item->PutEditBorder(EXTOOLBARLib::exEditBorderNone);
		var_Item->PutEditValue(long(25));
spToolBar1->Refresh();

145
Is it possible to get notified once the user edits the field, or change the slider value

// EditChange event - Occurs when the user alters the item's text box field.
void OnEditChangeToolBar1(LPDISPATCH   Itm)
{
	/*
		Copy and paste the following directives to your header file as
		it defines the namespace 'EXTOOLBARLib' for the library: 'ExToolBar 1.0 Control Library'
		#import <ExToolBar.dll>
		using namespace EXTOOLBARLib;
	*/
	EXTOOLBARLib::IToolBarPtr spToolBar1 = GetDlgItem(IDC_TOOLBAR1)->GetControlUnknown();
	OutputDebugStringW( L"EditChange event on Itm object" );
}

EXTOOLBARLib::IToolBarPtr spToolBar1 = GetDlgItem(IDC_TOOLBAR1)->GetControlUnknown();
EXTOOLBARLib::IItemsPtr var_Items = spToolBar1->GetItems();
	EXTOOLBARLib::IItemPtr var_Item = var_Items->Add(L"Item",vtMissing,vtMissing);
		var_Item->PutAllowEdit(EXTOOLBARLib::exItemEditSlider);
		var_Item->PutEditWidth(128);
		var_Item->PutEditBorder(EXTOOLBARLib::exEditBorderNone);
		var_Item->PutEditValue(long(25));
spToolBar1->Refresh();

144
How do I get notified once I uncheck an item

// UncheckItem event - Occurs when the user unchecks the item.
void OnUncheckItemToolBar1(LPDISPATCH   Itm)
{
	/*
		Copy and paste the following directives to your header file as
		it defines the namespace 'EXTOOLBARLib' for the library: 'ExToolBar 1.0 Control Library'
		#import <ExToolBar.dll>
		using namespace EXTOOLBARLib;
	*/
	EXTOOLBARLib::IToolBarPtr spToolBar1 = GetDlgItem(IDC_TOOLBAR1)->GetControlUnknown();
	OutputDebugStringW( L"UncheckItem event on Itm object" );
}

EXTOOLBARLib::IToolBarPtr spToolBar1 = GetDlgItem(IDC_TOOLBAR1)->GetControlUnknown();
EXTOOLBARLib::IItemsPtr var_Items = spToolBar1->GetItems();
	var_Items->Add(L"Item",vtMissing,vtMissing)->PutCheck(VARIANT_TRUE);
	var_Items->Add(L"Item",vtMissing,vtMissing)->PutCheck(VARIANT_TRUE);
spToolBar1->Refresh();

143
How do I get notified once I check an item

// CheckItem event - Occurs when the user checks the item.
void OnCheckItemToolBar1(LPDISPATCH   Itm)
{
	/*
		Copy and paste the following directives to your header file as
		it defines the namespace 'EXTOOLBARLib' for the library: 'ExToolBar 1.0 Control Library'
		#import <ExToolBar.dll>
		using namespace EXTOOLBARLib;
	*/
	EXTOOLBARLib::IToolBarPtr spToolBar1 = GetDlgItem(IDC_TOOLBAR1)->GetControlUnknown();
	OutputDebugStringW( L"CheckItem event on Itm object" );
}

EXTOOLBARLib::IToolBarPtr spToolBar1 = GetDlgItem(IDC_TOOLBAR1)->GetControlUnknown();
EXTOOLBARLib::IItemsPtr var_Items = spToolBar1->GetItems();
	var_Items->Add(L"Item",vtMissing,vtMissing)->PutCheck(VARIANT_TRUE);
	var_Items->Add(L"Item",vtMissing,vtMissing)->PutCheck(VARIANT_TRUE);
spToolBar1->Refresh();

142
How do I get notified once I click/select an item

// SelectItem event - Occurs when the user selects the item.
void OnSelectItemToolBar1(LPDISPATCH   Itm)
{
	/*
		Copy and paste the following directives to your header file as
		it defines the namespace 'EXTOOLBARLib' for the library: 'ExToolBar 1.0 Control Library'
		#import <ExToolBar.dll>
		using namespace EXTOOLBARLib;
	*/
	EXTOOLBARLib::IToolBarPtr spToolBar1 = GetDlgItem(IDC_TOOLBAR1)->GetControlUnknown();
	OutputDebugStringW( L"SelectItem event on Itm object" );
}

EXTOOLBARLib::IToolBarPtr spToolBar1 = GetDlgItem(IDC_TOOLBAR1)->GetControlUnknown();
EXTOOLBARLib::IItemsPtr var_Items = spToolBar1->GetItems();
	var_Items->Add(L"Item",vtMissing,vtMissing);
	var_Items->Add(L"Item",vtMissing,vtMissing);
spToolBar1->Refresh();

141
Does your control support padding for items

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXTOOLBARLib' for the library: 'ExToolBar 1.0 Control Library'

	#import <ExToolBar.dll>
	using namespace EXTOOLBARLib;
*/
EXTOOLBARLib::IToolBarPtr spToolBar1 = GetDlgItem(IDC_TOOLBAR1)->GetControlUnknown();
spToolBar1->PutPopupFlatAppearance(VARIANT_FALSE);
EXTOOLBARLib::IItemsPtr var_Items = spToolBar1->GetItems();
	var_Items->PutPadding(L"2,12,2,2");
	EXTOOLBARLib::IItemPtr var_Item = var_Items->Add(L"",long(2),vtMissing);
		var_Item->PutGroupPopup(EXTOOLBARLib::GroupPopupEnum(EXTOOLBARLib::exNoGroupPopupFrame | EXTOOLBARLib::exGroupPopup));
		EXTOOLBARLib::IItemsPtr var_Items1 = var_Item->GetItems();
			var_Items1->Add(L"Item 1",vtMissing,vtMissing);
			var_Items1->Add(L"Item 2",vtMissing,vtMissing);
			var_Items1->Add(L"Item 3",vtMissing,vtMissing);
	var_Items->PutBackColor(RGB(255,255,255));
	var_Items->PutBackgroundExt(L"root[pattern=0x000,frame=RGB(128,128,128)](top[2],top[10,text=`<font ;6><fgcolor 808080> group </font></fgcolor>`,align=0x11])");
spToolBar1->Refresh();

140
How can I display the drop down popup to a different position ( method 2 )

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXTOOLBARLib' for the library: 'ExToolBar 1.0 Control Library'

	#import <ExToolBar.dll>
	using namespace EXTOOLBARLib;
*/
EXTOOLBARLib::IToolBarPtr spToolBar1 = GetDlgItem(IDC_TOOLBAR1)->GetControlUnknown();
EXTOOLBARLib::IItemsPtr var_Items = spToolBar1->GetItems();
	EXTOOLBARLib::IItemPtr var_Item = var_Items->Add(L"Popup",long(2),long(100));
		var_Item->PutShowPopupAlign(EXTOOLBARLib::exShowPopupAlignDown);
		var_Item->PutShowPopupArrow(VARIANT_FALSE);
		var_Item->PutShowPopupOffset(L"-12,-48");
		EXTOOLBARLib::IItemsPtr var_Items1 = var_Item->GetItems();
			var_Items1->PutPopupAppearance(EXTOOLBARLib::RaisedBorder);
			var_Items1->Add(L"Item 1",vtMissing,vtMissing);
			var_Items1->Add(L"Item 2",vtMissing,vtMissing);
			var_Items1->Add(L"Item 3",vtMissing,vtMissing);
spToolBar1->Refresh();

139
How can I display the drop down popup to a different position ( method 1 )

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXTOOLBARLib' for the library: 'ExToolBar 1.0 Control Library'

	#import <ExToolBar.dll>
	using namespace EXTOOLBARLib;
*/
EXTOOLBARLib::IToolBarPtr spToolBar1 = GetDlgItem(IDC_TOOLBAR1)->GetControlUnknown();
EXTOOLBARLib::IItemsPtr var_Items = spToolBar1->GetItems();
	EXTOOLBARLib::IItemPtr var_Item = var_Items->Add(L"",long(2),vtMissing);
		var_Item->PutGroupPopup(EXTOOLBARLib::exGroupPopup);
		EXTOOLBARLib::IItemsPtr var_Items1 = var_Item->GetItems();
			EXTOOLBARLib::IItemPtr var_Item1 = var_Items1->Add(L"Popup 1",long(2),long(100));
				var_Item1->PutShowPopupAlign(EXTOOLBARLib::exShowPopupAlignDown);
				var_Item1->PutShowPopupArrow(VARIANT_FALSE);
				EXTOOLBARLib::IItemsPtr var_Items2 = var_Item1->GetItems();
					var_Items2->PutPopupAppearance(EXTOOLBARLib::RaisedBorder);
					var_Items2->Add(L"Item 1",vtMissing,vtMissing);
					var_Items2->Add(L"Item 2",vtMissing,vtMissing);
					var_Items2->Add(L"Item 3",vtMissing,vtMissing);
			EXTOOLBARLib::IItemPtr var_Item2 = var_Items1->Add(L"Popup 2",long(2),long(200));
				var_Item2->PutShowPopupAt(100);
				var_Item2->PutShowPopupArrow(VARIANT_FALSE);
				EXTOOLBARLib::IItemsPtr var_Items3 = var_Item2->GetItems();
					var_Items3->PutPopupAppearance(EXTOOLBARLib::RaisedBorder);
					var_Items3->Add(L"Item 4",vtMissing,vtMissing);
					var_Items3->Add(L"Item 5",vtMissing,vtMissing);
					var_Items3->Add(L"Item 6",vtMissing,vtMissing);
spToolBar1->Refresh();

138
Is it possible to show the popup bellow to the item, rather than on the right side

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXTOOLBARLib' for the library: 'ExToolBar 1.0 Control Library'

	#import <ExToolBar.dll>
	using namespace EXTOOLBARLib;
*/
EXTOOLBARLib::IToolBarPtr spToolBar1 = GetDlgItem(IDC_TOOLBAR1)->GetControlUnknown();
EXTOOLBARLib::IItemsPtr var_Items = spToolBar1->GetItems();
	EXTOOLBARLib::IItemPtr var_Item = var_Items->Add(L"Popup",long(2),vtMissing);
		var_Item->PutShowPopupAlign(EXTOOLBARLib::exShowPopupAlignDown);
		var_Item->PutShowPopupArrow(VARIANT_FALSE);
		EXTOOLBARLib::IItemsPtr var_Items1 = var_Item->GetItems();
			var_Items1->PutPopupAppearance(EXTOOLBARLib::FlatBorder);
			var_Items1->Add(L"Item 1",vtMissing,vtMissing);
			var_Items1->Add(L"Item 2",vtMissing,vtMissing);
			var_Items1->Add(L"Item 3",vtMissing,vtMissing);
	var_Items->Add(L"",vtMissing,vtMissing)->PutToString(L"Popup[arrow=0][popupalign=1][popupapp=1](Item 1,Item 2,Item 3)");
spToolBar1->Refresh();

137
How can I change the visual appearance for items, when cursor hovers it (hot,EBN)

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXTOOLBARLib' for the library: 'ExToolBar 1.0 Control Library'

	#import <ExToolBar.dll>
	using namespace EXTOOLBARLib;
*/
EXTOOLBARLib::IToolBarPtr spToolBar1 = GetDlgItem(IDC_TOOLBAR1)->GetControlUnknown();
spToolBar1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn");
EXTOOLBARLib::IItemsPtr var_Items = spToolBar1->GetItems();
	EXTOOLBARLib::IItemPtr var_Item = var_Items->Add(L"",long(2),vtMissing);
		var_Item->PutGroupPopup(EXTOOLBARLib::GroupPopupEnum(EXTOOLBARLib::exNoGroupPopupFrame | EXTOOLBARLib::exGroupPopup));
		EXTOOLBARLib::IItemsPtr var_Items1 = var_Item->GetItems();
			var_Items1->PutHotBackColor(0x1000000);
			var_Items1->PutPadding(L"4,8,4,8");
			var_Items1->Add(L"Item 1",vtMissing,vtMissing);
			var_Items1->Add(L"Item 2",vtMissing,vtMissing);
			var_Items1->Add(L"Item 3",vtMissing,vtMissing);
	var_Items->Add(L"",vtMissing,vtMissing)->PutToString(L"[group=0x03][itemspad=4,8,4,8][itemsbghot=0x1000000](Item 1,Item 2,Item 3)");
spToolBar1->Refresh();

136
How can I change the background color for items, when cursor hovers it (hot)

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXTOOLBARLib' for the library: 'ExToolBar 1.0 Control Library'

	#import <ExToolBar.dll>
	using namespace EXTOOLBARLib;
*/
EXTOOLBARLib::IToolBarPtr spToolBar1 = GetDlgItem(IDC_TOOLBAR1)->GetControlUnknown();
EXTOOLBARLib::IItemsPtr var_Items = spToolBar1->GetItems();
	EXTOOLBARLib::IItemPtr var_Item = var_Items->Add(L"",long(2),vtMissing);
		var_Item->PutGroupPopup(EXTOOLBARLib::GroupPopupEnum(EXTOOLBARLib::exNoGroupPopupFrame | EXTOOLBARLib::exGroupPopup));
		EXTOOLBARLib::IItemsPtr var_Items1 = var_Item->GetItems();
			var_Items1->PutHotBackColor(RGB(255,0,0));
			var_Items1->PutPadding(L"0,8,0,8");
			var_Items1->Add(L"Item 1",vtMissing,vtMissing);
			var_Items1->Add(L"Item 2",vtMissing,vtMissing);
			var_Items1->Add(L"Item 3",vtMissing,vtMissing);
	var_Items->Add(L"",vtMissing,vtMissing)->PutToString(L"[group=0x03][itemspad=0,8,0,8][itemsbghot=RGB(255,0,0)](Item 1,Item 2,Item 3)");
spToolBar1->Refresh();

135
How can I change the visual appearance for items (EBN)

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXTOOLBARLib' for the library: 'ExToolBar 1.0 Control Library'

	#import <ExToolBar.dll>
	using namespace EXTOOLBARLib;
*/
EXTOOLBARLib::IToolBarPtr spToolBar1 = GetDlgItem(IDC_TOOLBAR1)->GetControlUnknown();
spToolBar1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn");
EXTOOLBARLib::IItemsPtr var_Items = spToolBar1->GetItems();
	EXTOOLBARLib::IItemPtr var_Item = var_Items->Add(L"",long(2),vtMissing);
		var_Item->PutGroupPopup(EXTOOLBARLib::GroupPopupEnum(EXTOOLBARLib::exNoGroupPopupFrame | EXTOOLBARLib::exGroupPopup));
		EXTOOLBARLib::IItemsPtr var_Items1 = var_Item->GetItems();
			var_Items1->PutBackColor(0x1000000);
			var_Items1->PutPadding(L"4,8,4,8");
			var_Items1->Add(L"Item 1",vtMissing,vtMissing);
			var_Items1->Add(L"Item 2",vtMissing,vtMissing);
			var_Items1->Add(L"Item 3",vtMissing,vtMissing);
	var_Items->Add(L"",vtMissing,vtMissing)->PutToString(L"[group=0x03][itemspad=4,8,4,8][itemsbg=0x1000000](Item 1,Item 2,Item 3)");
spToolBar1->Refresh();

134
How can I change the background color for items

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXTOOLBARLib' for the library: 'ExToolBar 1.0 Control Library'

	#import <ExToolBar.dll>
	using namespace EXTOOLBARLib;
*/
EXTOOLBARLib::IToolBarPtr spToolBar1 = GetDlgItem(IDC_TOOLBAR1)->GetControlUnknown();
EXTOOLBARLib::IItemsPtr var_Items = spToolBar1->GetItems();
	EXTOOLBARLib::IItemPtr var_Item = var_Items->Add(L"",long(2),vtMissing);
		var_Item->PutGroupPopup(EXTOOLBARLib::GroupPopupEnum(EXTOOLBARLib::exNoGroupPopupFrame | EXTOOLBARLib::exGroupPopup));
		EXTOOLBARLib::IItemsPtr var_Items1 = var_Item->GetItems();
			var_Items1->PutBackColor(RGB(255,0,0));
			var_Items1->PutPadding(L"0,8,0,8");
			var_Items1->Add(L"Item 1",vtMissing,vtMissing);
			var_Items1->Add(L"Item 2",vtMissing,vtMissing);
			var_Items1->Add(L"Item 3",vtMissing,vtMissing);
	var_Items->Add(L"",vtMissing,vtMissing)->PutToString(L"[group=0x03][itemspad=0,8,0,8][itemsbg=RGB(255,0,0)](Item 1,Item 2,Item 3)");
spToolBar1->Refresh();

133
Is it possible to hide the popup's arrow

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXTOOLBARLib' for the library: 'ExToolBar 1.0 Control Library'

	#import <ExToolBar.dll>
	using namespace EXTOOLBARLib;
*/
EXTOOLBARLib::IToolBarPtr spToolBar1 = GetDlgItem(IDC_TOOLBAR1)->GetControlUnknown();
EXTOOLBARLib::IItemsPtr var_Items = spToolBar1->GetItems();
	EXTOOLBARLib::IItemPtr var_Item = var_Items->Add(L"Popup",long(2),vtMissing);
		var_Item->PutShowPopupArrow(VARIANT_FALSE);
		EXTOOLBARLib::IItemsPtr var_Items1 = var_Item->GetItems();
			var_Items1->PutPopupAppearance(EXTOOLBARLib::ShadowBorder);
			var_Items1->Add(L"Item 1",vtMissing,vtMissing);
			var_Items1->Add(L"Item 2",vtMissing,vtMissing);
			var_Items1->Add(L"Item 3",vtMissing,vtMissing);
	var_Items->Add(L"",vtMissing,vtMissing)->PutToString(L"Popup[arrow=0][popupapp=6](Item 1,Item 2,Item 3)");
spToolBar1->Refresh();

132
How do I hide the left gray portion to be shown on the drop down menu/popup (method 2)

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXTOOLBARLib' for the library: 'ExToolBar 1.0 Control Library'

	#import <ExToolBar.dll>
	using namespace EXTOOLBARLib;
*/
EXTOOLBARLib::IToolBarPtr spToolBar1 = GetDlgItem(IDC_TOOLBAR1)->GetControlUnknown();
spToolBar1->PutPopupFlatImageWidth(0);
EXTOOLBARLib::IItemsPtr var_Items = spToolBar1->GetItems();
	EXTOOLBARLib::IItemsPtr var_Items1 = var_Items->Add(L"Popup",long(2),vtMissing)->GetItems();
		var_Items1->Add(L"Item 1",vtMissing,vtMissing);
		var_Items1->Add(L"Item 2",vtMissing,vtMissing);
		var_Items1->Add(L"Item 3",vtMissing,vtMissing);
		var_Items1->PutPopupAppearance(EXTOOLBARLib::ShadowBorder);
spToolBar1->Refresh();

131
How do I hide the left gray portion to be shown on the drop down menu/popup (method 1)

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXTOOLBARLib' for the library: 'ExToolBar 1.0 Control Library'

	#import <ExToolBar.dll>
	using namespace EXTOOLBARLib;
*/
EXTOOLBARLib::IToolBarPtr spToolBar1 = GetDlgItem(IDC_TOOLBAR1)->GetControlUnknown();
spToolBar1->PutPopupFlatAppearance(VARIANT_FALSE);
EXTOOLBARLib::IItemsPtr var_Items = spToolBar1->GetItems();
	EXTOOLBARLib::IItemsPtr var_Items1 = var_Items->Add(L"Popup",long(2),vtMissing)->GetItems();
		var_Items1->Add(L"Item 1",vtMissing,vtMissing);
		var_Items1->Add(L"Item 2",vtMissing,vtMissing);
		var_Items1->Add(L"Item 3",vtMissing,vtMissing);
		var_Items1->PutPopupAppearance(EXTOOLBARLib::ShadowBorder);
spToolBar1->Refresh();

130
How can I arrange the drop down item from left to right, rather than top to bottom

// SelectItem event - Occurs when the user selects the item.
void OnSelectItemToolBar1(LPDISPATCH   Itm)
{
	/*
		Copy and paste the following directives to your header file as
		it defines the namespace 'EXTOOLBARLib' for the library: 'ExToolBar 1.0 Control Library'
		#import <ExToolBar.dll>
		using namespace EXTOOLBARLib;
	*/
	EXTOOLBARLib::IToolBarPtr spToolBar1 = GetDlgItem(IDC_TOOLBAR1)->GetControlUnknown();
	OutputDebugStringW( L"Clicked" );
}

EXTOOLBARLib::IToolBarPtr spToolBar1 = GetDlgItem(IDC_TOOLBAR1)->GetControlUnknown();
spToolBar1->PutPopupFlatAppearance(VARIANT_FALSE);
EXTOOLBARLib::IItemsPtr var_Items = spToolBar1->GetItems();
	EXTOOLBARLib::IItemPtr var_Item = var_Items->Add(L"Button",long(2),vtMissing);
		var_Item->PutShowAsButton(EXTOOLBARLib::ShowAsButtonEnum(EXTOOLBARLib::exShowAsSelectButtonBottom | EXTOOLBARLib::exShowAsButtonAutoSize));
		EXTOOLBARLib::IItemsPtr var_Items1 = var_Item->GetItems();
			var_Items1->PutPopupAppearance(EXTOOLBARLib::ShadowBorder);
			EXTOOLBARLib::IItemPtr var_Item1 = var_Items1->Add(L"",long(2),vtMissing);
				var_Item1->PutGroupPopup(EXTOOLBARLib::GroupPopupEnum(EXTOOLBARLib::exNoGroupPopupFrame | EXTOOLBARLib::exGroupPopup));
				EXTOOLBARLib::IItemsPtr var_Items2 = var_Item1->GetItems();
					var_Items2->Add(L"Item 1",vtMissing,vtMissing);
					var_Items2->Add(L"Item 2",vtMissing,vtMissing);
					var_Items2->Add(L"Item 3",vtMissing,vtMissing);
	var_Items->Add(L"",vtMissing,vtMissing)->PutToString(L"Button[button=0x0113][popupapp=6]([group=0x03](Item 1,Item 2,Item 3))");
spToolBar1->Refresh();

129
How can I add a drop down button / combobox (method 2)

// SelectItem event - Occurs when the user selects the item.
void OnSelectItemToolBar1(LPDISPATCH   Itm)
{
	/*
		Copy and paste the following directives to your header file as
		it defines the namespace 'EXTOOLBARLib' for the library: 'ExToolBar 1.0 Control Library'
		#import <ExToolBar.dll>
		using namespace EXTOOLBARLib;
	*/
	EXTOOLBARLib::IToolBarPtr spToolBar1 = GetDlgItem(IDC_TOOLBAR1)->GetControlUnknown();
	OutputDebugStringW( L"Clicked" );
}

EXTOOLBARLib::IToolBarPtr spToolBar1 = GetDlgItem(IDC_TOOLBAR1)->GetControlUnknown();
EXTOOLBARLib::IItemsPtr var_Items = spToolBar1->GetItems();
	EXTOOLBARLib::IItemPtr var_Item = var_Items->Add(L"Button",long(2),vtMissing);
		var_Item->PutShowAsButton(EXTOOLBARLib::ShowAsButtonEnum(EXTOOLBARLib::exShowAsSelectButtonBottom | EXTOOLBARLib::exShowAsButtonAutoSize));
		EXTOOLBARLib::IItemsPtr var_Items1 = var_Item->GetItems();
			var_Items1->PutPopupAppearance(EXTOOLBARLib::ShadowBorder);
			var_Items1->Add(L"Item 1",vtMissing,vtMissing);
			var_Items1->Add(L"Item 2",vtMissing,vtMissing);
			var_Items1->Add(L"Item 3",vtMissing,vtMissing);
	var_Items->Add(L"",vtMissing,vtMissing)->PutToString(L"Button[button=275][popupapp=6](Item 1[id=20],Item 2[id=30],Item 3[id=40])");
spToolBar1->Refresh();

128
How can I add a drop down button / combobox (method 1)

// SelectItem event - Occurs when the user selects the item.
void OnSelectItemToolBar1(LPDISPATCH   Itm)
{
	/*
		Copy and paste the following directives to your header file as
		it defines the namespace 'EXTOOLBARLib' for the library: 'ExToolBar 1.0 Control Library'
		#import <ExToolBar.dll>
		using namespace EXTOOLBARLib;
	*/
	EXTOOLBARLib::IToolBarPtr spToolBar1 = GetDlgItem(IDC_TOOLBAR1)->GetControlUnknown();
	OutputDebugStringW( L"Clicked" );
}

EXTOOLBARLib::IToolBarPtr spToolBar1 = GetDlgItem(IDC_TOOLBAR1)->GetControlUnknown();
EXTOOLBARLib::IItemsPtr var_Items = spToolBar1->GetItems();
	EXTOOLBARLib::IItemPtr var_Item = var_Items->Add(L"Button",long(2),vtMissing);
		var_Item->PutShowAsButton(EXTOOLBARLib::ShowAsButtonEnum(EXTOOLBARLib::exShowAsSelectButton | EXTOOLBARLib::exShowAsButtonAutoSize));
		EXTOOLBARLib::IItemsPtr var_Items1 = var_Item->GetItems();
			var_Items1->PutPopupAppearance(EXTOOLBARLib::ShadowBorder);
			var_Items1->Add(L"Item 1",vtMissing,vtMissing);
			var_Items1->Add(L"Item 2",vtMissing,vtMissing);
			var_Items1->Add(L"Item 3",vtMissing,vtMissing);
	var_Items->Add(L"",vtMissing,vtMissing)->PutToString(L"Button[button=0x13][popupapp=6](Item 1[id=20],Item 2[id=30],Item 3[id=40])");
spToolBar1->Refresh();

127
I am using exShowAsSelectButton/exShowAsSelectButtonBottom but none of them works. What could be wrong

// SelectItem event - Occurs when the user selects the item.
void OnSelectItemToolBar1(LPDISPATCH   Itm)
{
	/*
		Copy and paste the following directives to your header file as
		it defines the namespace 'EXTOOLBARLib' for the library: 'ExToolBar 1.0 Control Library'
		#import <ExToolBar.dll>
		using namespace EXTOOLBARLib;
	*/
	EXTOOLBARLib::IToolBarPtr spToolBar1 = GetDlgItem(IDC_TOOLBAR1)->GetControlUnknown();
	OutputDebugStringW( L"Clicked" );
}

EXTOOLBARLib::IToolBarPtr spToolBar1 = GetDlgItem(IDC_TOOLBAR1)->GetControlUnknown();
EXTOOLBARLib::IItemsPtr var_Items = spToolBar1->GetItems();
	EXTOOLBARLib::IItemPtr var_Item = var_Items->Add(L"Button",long(2),vtMissing);
		var_Item->PutShowAsButton(EXTOOLBARLib::ShowAsButtonEnum(EXTOOLBARLib::exShowAsSelectButton | EXTOOLBARLib::exShowAsButtonAutoSize));
		EXTOOLBARLib::IItemsPtr var_Items1 = var_Item->GetItems();
			var_Items1->PutPopupAppearance(EXTOOLBARLib::ShadowBorder);
			var_Items1->Add(L"Item 1",vtMissing,vtMissing);
			var_Items1->Add(L"Item 2",vtMissing,vtMissing);
			var_Items1->Add(L"Item 3",vtMissing,vtMissing);
spToolBar1->Refresh();

126
How can I add a button (push button)

// SelectItem event - Occurs when the user selects the item.
void OnSelectItemToolBar1(LPDISPATCH   Itm)
{
	/*
		Copy and paste the following directives to your header file as
		it defines the namespace 'EXTOOLBARLib' for the library: 'ExToolBar 1.0 Control Library'
		#import <ExToolBar.dll>
		using namespace EXTOOLBARLib;
	*/
	EXTOOLBARLib::IToolBarPtr spToolBar1 = GetDlgItem(IDC_TOOLBAR1)->GetControlUnknown();
	OutputDebugStringW( L"Clicked" );
}

EXTOOLBARLib::IToolBarPtr spToolBar1 = GetDlgItem(IDC_TOOLBAR1)->GetControlUnknown();
EXTOOLBARLib::IItemsPtr var_Items = spToolBar1->GetItems();
	var_Items->Add(L"Button",vtMissing,vtMissing)->PutShowAsButton(EXTOOLBARLib::ShowAsButtonEnum(EXTOOLBARLib::exShowAsButtonAutoSize | EXTOOLBARLib::exShowAsButton));
	var_Items->Add(L"",vtMissing,vtMissing)->PutToString(L"Button[button=0x03]");
spToolBar1->Refresh();

125
How can I display grouping items with no frame arround

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXTOOLBARLib' for the library: 'ExToolBar 1.0 Control Library'

	#import <ExToolBar.dll>
	using namespace EXTOOLBARLib;
*/
EXTOOLBARLib::IToolBarPtr spToolBar1 = GetDlgItem(IDC_TOOLBAR1)->GetControlUnknown();
EXTOOLBARLib::IItemsPtr var_Items = spToolBar1->GetItems();
	EXTOOLBARLib::IItemPtr var_Item = var_Items->Add(L"Horizontal Group",long(2),vtMissing);
		var_Item->PutGroupPopup(EXTOOLBARLib::GroupPopupEnum(EXTOOLBARLib::exGroupPopupFrameThickBox | EXTOOLBARLib::exGroupPopupFrameSolidBox | EXTOOLBARLib::exGroupPopupEqualHeight | EXTOOLBARLib::exGroupPopupEqualWidth | EXTOOLBARLib::exNoGroupPopupFrame | EXTOOLBARLib::exGroupPopup));
		EXTOOLBARLib::IItemsPtr var_Items1 = var_Item->GetItems();
			var_Items1->Add(L"A",vtMissing,vtMissing)->PutAlignment(EXTOOLBARLib::exCenter);
			var_Items1->Add(L"BC",vtMissing,vtMissing)->PutAlignment(EXTOOLBARLib::exCenter);
			var_Items1->Add(L"D",vtMissing,vtMissing)->PutAlignment(EXTOOLBARLib::exCenter);
	var_Items->Add(L"",vtMissing,vtMissing)->PutToString(L"Horizontal Group[group=243](A[id=20][align=1],BC[id=30][align=1],D[id=40][align=1])");
spToolBar1->Refresh();

124
How can I display grouping items of the same size/width/height

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXTOOLBARLib' for the library: 'ExToolBar 1.0 Control Library'

	#import <ExToolBar.dll>
	using namespace EXTOOLBARLib;
*/
EXTOOLBARLib::IToolBarPtr spToolBar1 = GetDlgItem(IDC_TOOLBAR1)->GetControlUnknown();
EXTOOLBARLib::IItemsPtr var_Items = spToolBar1->GetItems();
	EXTOOLBARLib::IItemPtr var_Item = var_Items->Add(L"Horizontal Group",long(2),vtMissing);
		var_Item->PutGroupPopup(EXTOOLBARLib::GroupPopupEnum(EXTOOLBARLib::exGroupPopupFrameThickBox | EXTOOLBARLib::exGroupPopupFrameSolidBox | EXTOOLBARLib::exGroupPopupEqualHeight | EXTOOLBARLib::exGroupPopupEqualWidth | EXTOOLBARLib::exGroupPopup));
		EXTOOLBARLib::IItemsPtr var_Items1 = var_Item->GetItems();
			var_Items1->Add(L"A",vtMissing,vtMissing)->PutAlignment(EXTOOLBARLib::exCenter);
			var_Items1->Add(L"BC",vtMissing,vtMissing)->PutAlignment(EXTOOLBARLib::exCenter);
			var_Items1->Add(L"D",vtMissing,vtMissing)->PutAlignment(EXTOOLBARLib::exCenter);
	var_Items->Add(L"",vtMissing,vtMissing)->PutToString(L"Horizontal Group[group=0xF1](A[id=20][align=1],BC[id=30][align=1],D[id=40][align=1])");
spToolBar1->Refresh();

123
Is it possible to display a ticker frame arround grouping items

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXTOOLBARLib' for the library: 'ExToolBar 1.0 Control Library'

	#import <ExToolBar.dll>
	using namespace EXTOOLBARLib;
*/
EXTOOLBARLib::IToolBarPtr spToolBar1 = GetDlgItem(IDC_TOOLBAR1)->GetControlUnknown();
EXTOOLBARLib::IItemsPtr var_Items = spToolBar1->GetItems();
	EXTOOLBARLib::IItemPtr var_Item = var_Items->Add(L"Horizontal Group",long(2),vtMissing);
		var_Item->PutGroupPopup(EXTOOLBARLib::GroupPopupEnum(EXTOOLBARLib::exGroupPopupFrameThickBox | EXTOOLBARLib::exGroupPopupFrameSolidBox | EXTOOLBARLib::exGroupPopup));
		EXTOOLBARLib::IItemsPtr var_Items1 = var_Item->GetItems();
			var_Items1->Add(L"Item 1",vtMissing,vtMissing);
			var_Items1->Add(L"Item 2",vtMissing,vtMissing);
			var_Items1->Add(L"Item 3",vtMissing,vtMissing);
	var_Items->Add(L"",vtMissing,vtMissing)->PutToString(L"Horizontal Group[group=193](Item 1[id=20],Item 2[id=30],Item 3[id=40])");
spToolBar1->Refresh();

122
How do I display items horizontally arranged

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXTOOLBARLib' for the library: 'ExToolBar 1.0 Control Library'

	#import <ExToolBar.dll>
	using namespace EXTOOLBARLib;
*/
EXTOOLBARLib::IToolBarPtr spToolBar1 = GetDlgItem(IDC_TOOLBAR1)->GetControlUnknown();
EXTOOLBARLib::IItemsPtr var_Items = spToolBar1->GetItems();
	EXTOOLBARLib::IItemPtr var_Item = var_Items->Add(L"Horizontal Group",long(2),vtMissing);
		var_Item->PutGroupPopup(EXTOOLBARLib::exGroupPopup);
		EXTOOLBARLib::IItemsPtr var_Items1 = var_Item->GetItems();
			var_Items1->Add(L"Item 1",vtMissing,vtMissing);
			var_Items1->Add(L"Item 2",vtMissing,vtMissing);
			var_Items1->Add(L"Item 3",vtMissing,vtMissing);
	var_Items->Add(L"",vtMissing,vtMissing)->PutToString(L"Horizontal Group[group=0x01](Item 1[id=20],Item 2[id=30],Item 3[id=40])");
spToolBar1->Refresh();

121
Is it possible to expand an item when it is clicked (tree,group,vertical)

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXTOOLBARLib' for the library: 'ExToolBar 1.0 Control Library'

	#import <ExToolBar.dll>
	using namespace EXTOOLBARLib;
*/
EXTOOLBARLib::IToolBarPtr spToolBar1 = GetDlgItem(IDC_TOOLBAR1)->GetControlUnknown();
EXTOOLBARLib::IItemsPtr var_Items = spToolBar1->GetItems();
	EXTOOLBARLib::IItemPtr var_Item = var_Items->Add(L"Expand",long(2),vtMissing);
		var_Item->PutGroupPopup(EXTOOLBARLib::GroupPopupEnum(EXTOOLBARLib::exGroupPopupVertical | EXTOOLBARLib::exNoGroupPopupFrame | EXTOOLBARLib::exGroupPopup));
		var_Item->PutCheck(VARIANT_TRUE);
		var_Item->PutShowPopupOnChecked(VARIANT_TRUE);
		EXTOOLBARLib::IItemsPtr var_Items1 = var_Item->GetItems();
			var_Items1->PutPadding(L"22,0,0,0");
			var_Items1->Add(L"Radio 1",vtMissing,vtMissing)->PutRadio(VARIANT_TRUE);
			var_Items1->Add(L"Radio 2",vtMissing,vtMissing)->PutRadio(VARIANT_TRUE);
			EXTOOLBARLib::IItemPtr var_Item1 = var_Items1->Add(L"Radio 3",vtMissing,vtMissing);
				var_Item1->PutRadio(VARIANT_TRUE);
				var_Item1->PutChecked(VARIANT_TRUE);
		var_Item->PutChecked(VARIANT_TRUE);
	var_Items->Add(L"",vtMissing,vtMissing)->PutToString(_bstr_t("Expand[typ=1][chk=1][spchk=-1][group=0x0103][itemspad=22,0,0,0](Radio 1[id=20][typ=2],Radio 2[id=30][typ=2],Radio 3[id=40][typ=") +
"2][chk=1])");
spToolBar1->Refresh();

120
Is it possible to expand an item when it is clicked (tree,group,vertical)

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXTOOLBARLib' for the library: 'ExToolBar 1.0 Control Library'

	#import <ExToolBar.dll>
	using namespace EXTOOLBARLib;
*/
EXTOOLBARLib::IToolBarPtr spToolBar1 = GetDlgItem(IDC_TOOLBAR1)->GetControlUnknown();
EXTOOLBARLib::IItemsPtr var_Items = spToolBar1->GetItems();
	EXTOOLBARLib::IItemPtr var_Item = var_Items->Add(L"Expand",long(2),vtMissing);
		var_Item->PutGroupPopup(EXTOOLBARLib::GroupPopupEnum(EXTOOLBARLib::exGroupPopupVertical | EXTOOLBARLib::exNoGroupPopupFrame | EXTOOLBARLib::exGroupPopup));
		var_Item->PutCheck(VARIANT_TRUE);
		var_Item->PutShowPopupOnChecked(VARIANT_TRUE);
		EXTOOLBARLib::IItemsPtr var_Items1 = var_Item->GetItems();
			var_Items1->PutPadding(L"22,0,0,0");
			var_Items1->Add(L"Radio 1",vtMissing,vtMissing)->PutRadio(VARIANT_TRUE);
			var_Items1->Add(L"Radio 2",vtMissing,vtMissing)->PutRadio(VARIANT_TRUE);
			EXTOOLBARLib::IItemPtr var_Item1 = var_Items1->Add(L"Radio 3",vtMissing,vtMissing);
				var_Item1->PutRadio(VARIANT_TRUE);
				var_Item1->PutChecked(VARIANT_TRUE);
		var_Item->PutChecked(VARIANT_TRUE);
spToolBar1->Refresh();

119
Is it possible to expand an item when it is clicked (group)

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXTOOLBARLib' for the library: 'ExToolBar 1.0 Control Library'

	#import <ExToolBar.dll>
	using namespace EXTOOLBARLib;
*/
EXTOOLBARLib::IToolBarPtr spToolBar1 = GetDlgItem(IDC_TOOLBAR1)->GetControlUnknown();
EXTOOLBARLib::IItemsPtr var_Items = spToolBar1->GetItems();
	EXTOOLBARLib::IItemPtr var_Item = var_Items->Add(L"Expand",long(2),vtMissing);
		var_Item->PutGroupPopup(EXTOOLBARLib::exGroupPopup);
		var_Item->PutItemHeight(24);
		var_Item->PutCheck(VARIANT_TRUE);
		var_Item->PutShowPopupOnChecked(VARIANT_TRUE);
		EXTOOLBARLib::IItemsPtr var_Items1 = var_Item->GetItems();
			var_Items1->Add(L"Item 1",vtMissing,vtMissing);
			var_Items1->Add(L"Item 2",vtMissing,vtMissing);
			var_Items1->Add(L"Item 3",vtMissing,vtMissing);
			var_Items1->PutPopupAppearance(EXTOOLBARLib::ShadowBorder);
spToolBar1->Refresh();

118
Is it possible to extend an item when it is clicked

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXTOOLBARLib' for the library: 'ExToolBar 1.0 Control Library'

	#import <ExToolBar.dll>
	using namespace EXTOOLBARLib;
*/
EXTOOLBARLib::IToolBarPtr spToolBar1 = GetDlgItem(IDC_TOOLBAR1)->GetControlUnknown();
EXTOOLBARLib::IItemsPtr var_Items = spToolBar1->GetItems();
	EXTOOLBARLib::IItemPtr var_Item = var_Items->Add(L"Expand",long(2),vtMissing);
		var_Item->PutCheck(VARIANT_TRUE);
		var_Item->PutShowPopupOnChecked(VARIANT_TRUE);
		EXTOOLBARLib::IItemsPtr var_Items1 = var_Item->GetItems();
			var_Items1->Add(L"Item 1",vtMissing,vtMissing);
			var_Items1->Add(L"Item 2",vtMissing,vtMissing);
			var_Items1->Add(L"Item 3",vtMissing,vtMissing);
			var_Items1->PutPopupAppearance(EXTOOLBARLib::ShadowBorder);
spToolBar1->Refresh();

117
Does your control implement padding for item

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXTOOLBARLib' for the library: 'ExToolBar 1.0 Control Library'

	#import <ExToolBar.dll>
	using namespace EXTOOLBARLib;
*/
EXTOOLBARLib::IToolBarPtr spToolBar1 = GetDlgItem(IDC_TOOLBAR1)->GetControlUnknown();
EXTOOLBARLib::IItemsPtr var_Items = spToolBar1->GetItems();
	var_Items->PutBackColor(RGB(250,250,250));
	var_Items->Add(L"Item",vtMissing,vtMissing)->PutPadding(L"4,4,4,4");
	var_Items->Add(L"",vtMissing,vtMissing)->PutToString(L"Item[pad=4,4,4,4]");
spToolBar1->Refresh();

116
How can I add an empty item for a horizontal group

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXTOOLBARLib' for the library: 'ExToolBar 1.0 Control Library'

	#import <ExToolBar.dll>
	using namespace EXTOOLBARLib;
*/
EXTOOLBARLib::IToolBarPtr spToolBar1 = GetDlgItem(IDC_TOOLBAR1)->GetControlUnknown();
EXTOOLBARLib::IItemsPtr var_Items = spToolBar1->GetItems();
	EXTOOLBARLib::IItemPtr var_Item = var_Items->Add(L"",long(2),vtMissing);
		var_Item->PutGroupPopup(EXTOOLBARLib::GroupPopupEnum(EXTOOLBARLib::exNoGroupPopupFrame | EXTOOLBARLib::exGroupPopup));
		EXTOOLBARLib::IItemsPtr var_Items1 = var_Item->GetItems();
			var_Items1->Add(L"Item 1",vtMissing,vtMissing);
			EXTOOLBARLib::IItemPtr var_Item1 = var_Items1->Add(L"",long(2),vtMissing);
				var_Item1->PutGroupPopup(EXTOOLBARLib::GroupPopupEnum(EXTOOLBARLib::exGroupPopupCenter | EXTOOLBARLib::exGroupPopup));
				var_Item1->PutItemHeight(12);
				EXTOOLBARLib::IItemPtr var_Item2 = var_Item1->GetItems()->Add(L"",vtMissing,vtMissing);
					var_Item2->PutEnabled(VARIANT_FALSE);
					var_Item2->PutItemHeight(8);
					var_Item2->PutCaptionWidth(8);
			var_Items1->Add(L"Item 2",vtMissing,vtMissing);
spToolBar1->Refresh();

115
How can I add an empty/separator item

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXTOOLBARLib' for the library: 'ExToolBar 1.0 Control Library'

	#import <ExToolBar.dll>
	using namespace EXTOOLBARLib;
*/
EXTOOLBARLib::IToolBarPtr spToolBar1 = GetDlgItem(IDC_TOOLBAR1)->GetControlUnknown();
EXTOOLBARLib::IItemsPtr var_Items = spToolBar1->GetItems();
	var_Items->Add(L"Item",vtMissing,vtMissing);
	EXTOOLBARLib::IItemPtr var_Item = var_Items->Add(L"",vtMissing,vtMissing);
		var_Item->PutEnabled(VARIANT_FALSE);
		var_Item->PutItemHeight(2);
		var_Item->PutCaptionWidth(8);
		var_Item->PutBackColor(RGB(240,240,240));
	var_Items->Add(L"Item",vtMissing,vtMissing);
spToolBar1->Refresh();

114
How can I add an empty/frame item

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXTOOLBARLib' for the library: 'ExToolBar 1.0 Control Library'

	#import <ExToolBar.dll>
	using namespace EXTOOLBARLib;
*/
EXTOOLBARLib::IToolBarPtr spToolBar1 = GetDlgItem(IDC_TOOLBAR1)->GetControlUnknown();
EXTOOLBARLib::IItemsPtr var_Items = spToolBar1->GetItems();
	var_Items->Add(L"Item 1",vtMissing,vtMissing);
	EXTOOLBARLib::IItemPtr var_Item = var_Items->Add(L"",long(2),vtMissing);
		var_Item->PutGroupPopup(EXTOOLBARLib::GroupPopupEnum(EXTOOLBARLib::exGroupPopupCenter | EXTOOLBARLib::exGroupPopup));
		var_Item->PutItemHeight(12);
		EXTOOLBARLib::IItemPtr var_Item1 = var_Item->GetItems()->Add(L"",vtMissing,vtMissing);
			var_Item1->PutEnabled(VARIANT_FALSE);
			var_Item1->PutItemHeight(8);
			var_Item1->PutCaptionWidth(8);
	var_Items->Add(L"Item 2",vtMissing,vtMissing);
spToolBar1->Refresh();

113
How can I specify the height of the item

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXTOOLBARLib' for the library: 'ExToolBar 1.0 Control Library'

	#import <ExToolBar.dll>
	using namespace EXTOOLBARLib;
*/
EXTOOLBARLib::IToolBarPtr spToolBar1 = GetDlgItem(IDC_TOOLBAR1)->GetControlUnknown();
EXTOOLBARLib::IItemsPtr var_Items = spToolBar1->GetItems();
	var_Items->PutBackColor(RGB(250,250,250));
	var_Items->Add(L"Item",vtMissing,vtMissing)->PutItemHeight(64);
	var_Items->Add(L"",vtMissing,vtMissing)->PutToString(L"Item[height=64]");
spToolBar1->Refresh();

112
How can I specify the width of the item

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXTOOLBARLib' for the library: 'ExToolBar 1.0 Control Library'

	#import <ExToolBar.dll>
	using namespace EXTOOLBARLib;
*/
EXTOOLBARLib::IToolBarPtr spToolBar1 = GetDlgItem(IDC_TOOLBAR1)->GetControlUnknown();
EXTOOLBARLib::IItemsPtr var_Items = spToolBar1->GetItems();
	var_Items->PutBackColor(RGB(250,250,250));
	var_Items->Add(L"Item",vtMissing,vtMissing)->PutCaptionWidth(128);
	var_Items->Add(L"",vtMissing,vtMissing)->PutToString(L"Item[captionwidth=128]");
spToolBar1->Refresh();

111
How do I align the item

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXTOOLBARLib' for the library: 'ExToolBar 1.0 Control Library'

	#import <ExToolBar.dll>
	using namespace EXTOOLBARLib;
*/
EXTOOLBARLib::IToolBarPtr spToolBar1 = GetDlgItem(IDC_TOOLBAR1)->GetControlUnknown();
EXTOOLBARLib::IItemsPtr var_Items = spToolBar1->GetItems();
	var_Items->PutBackColor(RGB(250,250,250));
	var_Items->Add(L"Item",vtMissing,vtMissing);
	EXTOOLBARLib::IItemPtr var_Item = var_Items->Add(L"Item",vtMissing,vtMissing);
		var_Item->PutAlignment(EXTOOLBARLib::exCenter);
		var_Item->PutCaptionWidth(128);
	EXTOOLBARLib::IItemPtr var_Item1 = var_Items->Add(L"Item",vtMissing,vtMissing);
		var_Item1->PutAlignment(EXTOOLBARLib::exRight);
		var_Item1->PutCaptionWidth(128);
	var_Items->Add(L"",vtMissing,vtMissing)->PutToString(L"Item[align=1]");
spToolBar1->Refresh();

110
How can I underline the item

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXTOOLBARLib' for the library: 'ExToolBar 1.0 Control Library'

	#import <ExToolBar.dll>
	using namespace EXTOOLBARLib;
*/
EXTOOLBARLib::IToolBarPtr spToolBar1 = GetDlgItem(IDC_TOOLBAR1)->GetControlUnknown();
EXTOOLBARLib::IItemsPtr var_Items = spToolBar1->GetItems();
	var_Items->Add(L"Item",vtMissing,vtMissing)->PutUnderline(VARIANT_TRUE);
	var_Items->Add(L"<u>Item</u>",vtMissing,vtMissing);
	var_Items->Add(L"",vtMissing,vtMissing)->PutToString(L"Item[und]");
spToolBar1->Refresh();

109
How can I show the item as strikeout

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXTOOLBARLib' for the library: 'ExToolBar 1.0 Control Library'

	#import <ExToolBar.dll>
	using namespace EXTOOLBARLib;
*/
EXTOOLBARLib::IToolBarPtr spToolBar1 = GetDlgItem(IDC_TOOLBAR1)->GetControlUnknown();
EXTOOLBARLib::IItemsPtr var_Items = spToolBar1->GetItems();
	var_Items->Add(L"Item",vtMissing,vtMissing)->PutStrikeout(VARIANT_TRUE);
	var_Items->Add(L"<s>Item</s>",vtMissing,vtMissing);
	var_Items->Add(L"",vtMissing,vtMissing)->PutToString(L"Item[stk]");
spToolBar1->Refresh();

108
How can I show the item in italics

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXTOOLBARLib' for the library: 'ExToolBar 1.0 Control Library'

	#import <ExToolBar.dll>
	using namespace EXTOOLBARLib;
*/
EXTOOLBARLib::IToolBarPtr spToolBar1 = GetDlgItem(IDC_TOOLBAR1)->GetControlUnknown();
EXTOOLBARLib::IItemsPtr var_Items = spToolBar1->GetItems();
	var_Items->Add(L"Item",vtMissing,vtMissing)->PutItalic(VARIANT_TRUE);
	var_Items->Add(L"<i>Item</i>",vtMissing,vtMissing);
	var_Items->Add(L"",vtMissing,vtMissing)->PutToString(L"Item[itl]");
spToolBar1->Refresh();

107
How can I show the item in bold

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXTOOLBARLib' for the library: 'ExToolBar 1.0 Control Library'

	#import <ExToolBar.dll>
	using namespace EXTOOLBARLib;
*/
EXTOOLBARLib::IToolBarPtr spToolBar1 = GetDlgItem(IDC_TOOLBAR1)->GetControlUnknown();
EXTOOLBARLib::IItemsPtr var_Items = spToolBar1->GetItems();
	var_Items->Add(L"Item",vtMissing,vtMissing)->PutBold(VARIANT_TRUE);
	var_Items->Add(L"<b>Item</b>",vtMissing,vtMissing);
	var_Items->Add(L"",vtMissing,vtMissing)->PutToString(L"Item[bld]");
spToolBar1->Refresh();

106
How can I show the item as disabled but still be able to select or use it

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXTOOLBARLib' for the library: 'ExToolBar 1.0 Control Library'

	#import <ExToolBar.dll>
	using namespace EXTOOLBARLib;
*/
EXTOOLBARLib::IToolBarPtr spToolBar1 = GetDlgItem(IDC_TOOLBAR1)->GetControlUnknown();
EXTOOLBARLib::IItemsPtr var_Items = spToolBar1->GetItems();
	var_Items->Add(L"Item",vtMissing,vtMissing)->PutShowAsDisabled(VARIANT_TRUE);
	var_Items->Add(L"",vtMissing,vtMissing)->PutToString(L"Item[showdis=1]");
spToolBar1->Refresh();

105
How can I enable or disable an item

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXTOOLBARLib' for the library: 'ExToolBar 1.0 Control Library'

	#import <ExToolBar.dll>
	using namespace EXTOOLBARLib;
*/
EXTOOLBARLib::IToolBarPtr spToolBar1 = GetDlgItem(IDC_TOOLBAR1)->GetControlUnknown();
EXTOOLBARLib::IItemsPtr var_Items = spToolBar1->GetItems();
	var_Items->Add(L"Item",vtMissing,vtMissing)->PutEnabled(VARIANT_FALSE);
	var_Items->Add(L"",vtMissing,vtMissing)->PutToString(L"Item[dis]");
spToolBar1->Refresh();

104
How can I add a separator item

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXTOOLBARLib' for the library: 'ExToolBar 1.0 Control Library'

	#import <ExToolBar.dll>
	using namespace EXTOOLBARLib;
*/
EXTOOLBARLib::IToolBarPtr spToolBar1 = GetDlgItem(IDC_TOOLBAR1)->GetControlUnknown();
EXTOOLBARLib::IItemsPtr var_Items = spToolBar1->GetItems();
	var_Items->Add(L"Item",vtMissing,vtMissing)->PutCaptionWidth(128);
	var_Items->Add(L"<font ;6>separator",long(1),vtMissing);
	var_Items->Add(L"Item",vtMissing,vtMissing)->PutCaptionWidth(128);
	var_Items->Add(L"",vtMissing,vtMissing)->PutToString(L"<font ;6>separator[sep]");
spToolBar1->Refresh();

103
How can I change the item's foreground color

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXTOOLBARLib' for the library: 'ExToolBar 1.0 Control Library'

	#import <ExToolBar.dll>
	using namespace EXTOOLBARLib;
*/
EXTOOLBARLib::IToolBarPtr spToolBar1 = GetDlgItem(IDC_TOOLBAR1)->GetControlUnknown();
EXTOOLBARLib::IItemsPtr var_Items = spToolBar1->GetItems();
	var_Items->Add(L"Item",vtMissing,vtMissing)->PutForeColor(RGB(255,0,0));
	var_Items->Add(L"<fgcolor FF0000>Item",vtMissing,vtMissing);
	var_Items->Add(L"",vtMissing,vtMissing)->PutToString(L"Item[fg=RGB(255,0,0)]");
spToolBar1->Refresh();

102
How can I change the item's background/backcolor, when the item is selected/checked (radio-buttons)

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXTOOLBARLib' for the library: 'ExToolBar 1.0 Control Library'

	#import <ExToolBar.dll>
	using namespace EXTOOLBARLib;
*/
EXTOOLBARLib::IToolBarPtr spToolBar1 = GetDlgItem(IDC_TOOLBAR1)->GetControlUnknown();
EXTOOLBARLib::IItemsPtr var_Items = spToolBar1->GetItems();
	EXTOOLBARLib::IItemPtr var_Item = var_Items->Add(L"",long(2),vtMissing);
		var_Item->PutGroupPopup(EXTOOLBARLib::GroupPopupEnum(EXTOOLBARLib::exNoGroupPopupFrame | EXTOOLBARLib::exGroupPopup));
		EXTOOLBARLib::IItemsPtr var_Items1 = var_Item->GetItems();
			EXTOOLBARLib::IItemPtr var_Item1 = var_Items1->Add(L"Radio 1",vtMissing,vtMissing);
				var_Item1->PutHotBackColor(RGB(255,255,255));
				var_Item1->PutSelBackColor(RGB(255,0,0));
				var_Item1->PutSelHotBackColor(RGB(255,0,0));
				var_Item1->PutShowCheckedAsSelected(EXTOOLBARLib::exDisplayItemHighlight);
				var_Item1->PutRadio(VARIANT_TRUE);
				var_Item1->PutRadioGroup(100);
				var_Item1->PutChecked(VARIANT_TRUE);
			EXTOOLBARLib::IItemPtr var_Item2 = var_Items1->Add(L"Radio 2",vtMissing,vtMissing);
				var_Item2->PutHotBackColor(RGB(255,255,255));
				var_Item2->PutSelBackColor(RGB(255,0,0));
				var_Item2->PutSelHotBackColor(RGB(255,0,0));
				var_Item2->PutShowCheckedAsSelected(EXTOOLBARLib::exDisplayItemHighlight);
				var_Item2->PutRadio(VARIANT_TRUE);
				var_Item2->PutRadioGroup(100);
			var_Items1->Add(L"",vtMissing,vtMissing)->PutToString(L"Radio 3[typ=2][show=1][grp=100][bghot=RGB(255,255,255)][bgsel=RGB(255,0,0)][bgselhot=RGB(255,0,0)]");
spToolBar1->Refresh();

101
How can I change the item's background/backcolor, when the item is selected/checked (check-box)

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXTOOLBARLib' for the library: 'ExToolBar 1.0 Control Library'

	#import <ExToolBar.dll>
	using namespace EXTOOLBARLib;
*/
EXTOOLBARLib::IToolBarPtr spToolBar1 = GetDlgItem(IDC_TOOLBAR1)->GetControlUnknown();
EXTOOLBARLib::IItemsPtr var_Items = spToolBar1->GetItems();
	EXTOOLBARLib::IItemPtr var_Item = var_Items->Add(L"Check 1",vtMissing,vtMissing);
		var_Item->PutHotBackColor(RGB(255,255,255));
		var_Item->PutSelBackColor(RGB(255,0,0));
		var_Item->PutSelHotBackColor(RGB(255,0,0));
		var_Item->PutShowCheckedAsSelected(EXTOOLBARLib::exDisplayItemHighlight);
		var_Item->PutChecked(VARIANT_TRUE);
		var_Item->PutCheck(VARIANT_TRUE);
	var_Items->Add(L"",vtMissing,vtMissing)->PutToString(L"Check 2[typ=1][chk=0][show=1][bghot=RGB(255,255,255)][bgsel=RGB(255,0,0)][bgselhot=RGB(255,0,0)]");
spToolBar1->Refresh();